'
) and double ("
) quotes.
Also note that the underscore character (_
) used in the symbol
names prints below the line and is not the same as a hyphen (-
).
Use the filename EDITPICO.COM.
Test out the command procedure EDITPICO.COM you created in this step. Set verify on so you can see what commands are executing and try the following. If any of the following examples do not seem to work correctly, or give you error messages, check your file with the lab handout and correct as necessary.$! COMMAND FILE TO REMEMBER EDIT FILE FOR NEXT TIME $! CSC135 Your name $ $ IF (P1 .EQS. "") THEN P1 := 'CURRENT_FILE' $ IF (P1 .NES. "") THEN GOTO EDITPICO $ $ASK_FILE: $ INQUIRE P1 "$_File" $ IF (P1 .EQS. "") THEN GOTO ASK_FILE $ $EDITPICO: $ CURRENT_FILE :== 'P1' $ $ WRITE SYS$OUTPUT "Editing ''CURRENT_FILE'" $ ASSIGN /USERMODE SYS$COMMAND SYS$INPUT $ PICO 'CURRENT_FILE' $ EXIT 1
EDITPICO :== "@EDITPICO.COM"
EDITPICO<cr>
. Since this is the first time, it should
ask you for a file name. Use any name you like. You should
end up in PICO
.PF4
, quit
)from the file without saving changes.
Note: If you get an error on this step, you must type
to clear the remembered file name before repeating.$ DELETE /SYMBOL /GLOBAL CURRENT_FILE
$
) level, type EDITPICO<cr>
again. It should edit
the same file as before. Check the file name again and quit
to return to DCL without saving the file.
Check that you are editing the new file and quit as before.$ EDITPICO new.fil
$ SET VERIFY
and repeat the last two steps.
$
" first in the line.
Place the line just before the $ EXIT
line.
Place the lab in the instructor hand-in box in BUS R6E, the "terminal room".Your-Name Lab 4.14: VAX Variables #2 - EDITPICO.COM TABER CSC135