<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic editing a file in tpu editor within a command deck in Operating System - OpenVMS</title>
    <link>https://community.hpe.com/t5/operating-system-openvms/editing-a-file-in-tpu-editor-within-a-command-deck/m-p/5109665#M25633</link>
    <description>when I edit a file using tpu from within a command deck how can I set the screen width to be 132 automatically so the user does not have to enter it.&lt;BR /&gt;&lt;BR /&gt;can I pass it with the edit command&lt;BR /&gt;&lt;BR /&gt;$edit/tpu test.txt</description>
    <pubDate>Tue, 20 May 2008 08:47:41 GMT</pubDate>
    <dc:creator>Mary Monaghan</dc:creator>
    <dc:date>2008-05-20T08:47:41Z</dc:date>
    <item>
      <title>editing a file in tpu editor within a command deck</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/editing-a-file-in-tpu-editor-within-a-command-deck/m-p/5109665#M25633</link>
      <description>when I edit a file using tpu from within a command deck how can I set the screen width to be 132 automatically so the user does not have to enter it.&lt;BR /&gt;&lt;BR /&gt;can I pass it with the edit command&lt;BR /&gt;&lt;BR /&gt;$edit/tpu test.txt</description>
      <pubDate>Tue, 20 May 2008 08:47:41 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/editing-a-file-in-tpu-editor-within-a-command-deck/m-p/5109665#M25633</guid>
      <dc:creator>Mary Monaghan</dc:creator>
      <dc:date>2008-05-20T08:47:41Z</dc:date>
    </item>
    <item>
      <title>Re: editing a file in tpu editor within a command deck</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/editing-a-file-in-tpu-editor-within-a-command-deck/m-p/5109666#M25634</link>
      <description>Before starting the editor do "set term/wi=132". TPU will set the width itself based upon the current width.&lt;BR /&gt;&lt;BR /&gt;Wim</description>
      <pubDate>Tue, 20 May 2008 08:55:31 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/editing-a-file-in-tpu-editor-within-a-command-deck/m-p/5109666#M25634</guid>
      <dc:creator>Wim Van den Wyngaert</dc:creator>
      <dc:date>2008-05-20T08:55:31Z</dc:date>
    </item>
    <item>
      <title>Re: editing a file in tpu editor within a command deck</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/editing-a-file-in-tpu-editor-within-a-command-deck/m-p/5109667#M25635</link>
      <description>Mary,&lt;BR /&gt;&lt;BR /&gt;I concur with  Wim, do the SET TERMINAL command.&lt;BR /&gt;&lt;BR /&gt;However, I would STRONGLY recommend that before setting the terminal width, the command procedure should use F$GETDVI to store the current width in a DCL symbol. After the editing session is complete, the prior width setting should be restored.&lt;BR /&gt;&lt;BR /&gt;Also, if this is a general procedure, I would consider using a logical name to select which editor is used. Having an underlying name in the group or system logical name table could provide a default of TPU (see my OpenVMS Technical Journal paper "Inheritance Based Environments in Stand-alone OpenVMS Systems and OpenVMS Clusters", abstract and links at &lt;A href="http://www.rlgsc.com/publications/vmstechjournal/inheritance.html," target="_blank"&gt;http://www.rlgsc.com/publications/vmstechjournal/inheritance.html,&lt;/A&gt; for examples and the concepts of defaulting).&lt;BR /&gt;&lt;BR /&gt;- Bob Gezelter, &lt;A href="http://www.rlgsc.com" target="_blank"&gt;http://www.rlgsc.com&lt;/A&gt;</description>
      <pubDate>Tue, 20 May 2008 09:15:14 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/editing-a-file-in-tpu-editor-within-a-command-deck/m-p/5109667#M25635</guid>
      <dc:creator>Robert Gezelter</dc:creator>
      <dc:date>2008-05-20T09:15:14Z</dc:date>
    </item>
    <item>
      <title>Re: editing a file in tpu editor within a command deck</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/editing-a-file-in-tpu-editor-within-a-command-deck/m-p/5109668#M25636</link>
      <description>To support Roberts idea:&lt;BR /&gt;It is not obvious to the casual user, that the terminal width can be obtained with:&lt;BR /&gt;&lt;BR /&gt;$ old_width= F$GETDVI("TT","DEVBUFSIZ")&lt;BR /&gt;&lt;BR /&gt;regards Kalle</description>
      <pubDate>Tue, 20 May 2008 09:30:35 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/editing-a-file-in-tpu-editor-within-a-command-deck/m-p/5109668#M25636</guid>
      <dc:creator>Karl Rohwedder</dc:creator>
      <dc:date>2008-05-20T09:30:35Z</dc:date>
    </item>
    <item>
      <title>Re: editing a file in tpu editor within a command deck</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/editing-a-file-in-tpu-editor-within-a-command-deck/m-p/5109669#M25637</link>
      <description>thanks for the help, one more question when to user exit's or quits from the edit, the screen gets set back to 80 but then it never seems to get to the menu&lt;BR /&gt;&lt;BR /&gt;It just comes back with &lt;BR /&gt;$       TYPE SYS$INPUT&lt;BR /&gt;&lt;BR /&gt;and takes input from the screen&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;$set term/width = 132&lt;BR /&gt;$edit/tpu test.txt /read_only&lt;BR /&gt;$set term/width 80&lt;BR /&gt;$ goto menu&lt;BR /&gt;&lt;BR /&gt; &lt;BR /&gt;</description>
      <pubDate>Tue, 20 May 2008 09:42:58 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/editing-a-file-in-tpu-editor-within-a-command-deck/m-p/5109669#M25637</guid>
      <dc:creator>Mary Monaghan</dc:creator>
      <dc:date>2008-05-20T09:42:58Z</dc:date>
    </item>
    <item>
      <title>Re: editing a file in tpu editor within a command deck</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/editing-a-file-in-tpu-editor-within-a-command-deck/m-p/5109670#M25638</link>
      <description>You should assign sys$input (which comes from the DCL procedure) to your terminal to allow for edit commands, e.g.&lt;BR /&gt;&lt;BR /&gt;$ 1: inquire ok ! here is your menu instead&lt;BR /&gt;$ assign /user sys$command sys$input&lt;BR /&gt;$ edit/read sys$login:login.com&lt;BR /&gt;$ goto 1&lt;BR /&gt;&lt;BR /&gt;Where does the TYPE SYS$INPUT come from?&lt;BR /&gt;&lt;BR /&gt;regards Kalle</description>
      <pubDate>Tue, 20 May 2008 09:49:31 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/editing-a-file-in-tpu-editor-within-a-command-deck/m-p/5109670#M25638</guid>
      <dc:creator>Karl Rohwedder</dc:creator>
      <dc:date>2008-05-20T09:49:31Z</dc:date>
    </item>
    <item>
      <title>Re: editing a file in tpu editor within a command deck</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/editing-a-file-in-tpu-editor-within-a-command-deck/m-p/5109671#M25639</link>
      <description>On my VMS 7.3 it's working.&lt;BR /&gt;&lt;BR /&gt;Did you do define (/users) sys$input sys$command somewhere in the command procedure ? Without /user it will stay active ... when you go to the menu.&lt;BR /&gt;&lt;BR /&gt;BTW : You can also use /init=file and put tpu commands in "file". I do "tpu set (mouse,off) in it. Thus I can use cut/paste in tpu.&lt;BR /&gt;&lt;BR /&gt;Wim</description>
      <pubDate>Tue, 20 May 2008 09:50:26 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/editing-a-file-in-tpu-editor-within-a-command-deck/m-p/5109671#M25639</guid>
      <dc:creator>Wim Van den Wyngaert</dc:creator>
      <dc:date>2008-05-20T09:50:26Z</dc:date>
    </item>
    <item>
      <title>Re: editing a file in tpu editor within a command deck</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/editing-a-file-in-tpu-editor-within-a-command-deck/m-p/5109672#M25640</link>
      <description>thanks for all you help , I'm sorted&lt;BR /&gt;</description>
      <pubDate>Tue, 20 May 2008 09:57:32 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/editing-a-file-in-tpu-editor-within-a-command-deck/m-p/5109672#M25640</guid>
      <dc:creator>Mary Monaghan</dc:creator>
      <dc:date>2008-05-20T09:57:32Z</dc:date>
    </item>
    <item>
      <title>Re: editing a file in tpu editor within a command deck</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/editing-a-file-in-tpu-editor-within-a-command-deck/m-p/5109673#M25641</link>
      <description>thanks</description>
      <pubDate>Tue, 20 May 2008 11:09:44 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/editing-a-file-in-tpu-editor-within-a-command-deck/m-p/5109673#M25641</guid>
      <dc:creator>Mary Monaghan</dc:creator>
      <dc:date>2008-05-20T11:09:44Z</dc:date>
    </item>
    <item>
      <title>Re: editing a file in tpu editor within a command deck</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/editing-a-file-in-tpu-editor-within-a-command-deck/m-p/5109674#M25642</link>
      <description>Rather than save and restore the terminal width outside, why not get TPU to do it for you? The EVE command SET WIDTH 132 will force the width to 132 characters, and restore it (if necessary) on exit.&lt;BR /&gt;&lt;BR /&gt;There are numerous ways to do this. &lt;BR /&gt;&lt;BR /&gt;1) Using an EVE initialization file:&lt;BR /&gt;&lt;BR /&gt;$ CREATE WIDTH.EVE&lt;BR /&gt;SET WIDTH 132&lt;BR /&gt;^Z&lt;BR /&gt;$ EDIT/TPU/INIT=WIDTH.EVE TEST.TXT&lt;BR /&gt;&lt;BR /&gt;2) Using a TPU command file&lt;BR /&gt;&lt;BR /&gt;$ CREATE WIDTH.TPU&lt;BR /&gt;EVE_SET_WIDTH(132);&lt;BR /&gt;^Z&lt;BR /&gt;$ EDIT/TPU/COMMAND=WIDTH.TPU TEST.TXT&lt;BR /&gt;&lt;BR /&gt;If you don't want to create an extra file, you can even use PIPE!&lt;BR /&gt;&lt;BR /&gt;$ PIPE WRITE SYS$OUTPUT "EVE_SET_WIDTH(132);" | -&lt;BR /&gt;(DEFINE/USER SYS$INPUT SYS$COMMAND ; -&lt;BR /&gt; EDIT/TPU/COMMAND=SYS$PIPE TEST.TXT)&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Tue, 20 May 2008 20:57:12 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/editing-a-file-in-tpu-editor-within-a-command-deck/m-p/5109674#M25642</guid>
      <dc:creator>John Gillings</dc:creator>
      <dc:date>2008-05-20T20:57:12Z</dc:date>
    </item>
    <item>
      <title>Re: editing a file in tpu editor within a command deck</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/editing-a-file-in-tpu-editor-within-a-command-deck/m-p/5109675#M25643</link>
      <description>John's solution is not doing the same thing. The width is indeed set to 132 within tpu but if you start typing words you will notice that justification is still done at column 80. You also need to do "set right 132" .&lt;BR /&gt;&lt;BR /&gt;Wim</description>
      <pubDate>Mon, 26 May 2008 14:55:38 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/editing-a-file-in-tpu-editor-within-a-command-deck/m-p/5109675#M25643</guid>
      <dc:creator>Wim Van den Wyngaert</dc:creator>
      <dc:date>2008-05-26T14:55:38Z</dc:date>
    </item>
  </channel>
</rss>

