User`s guide

110 DC 900-1406E
BSCTRAN Programmer’s Guide
$ ! Set up to catch fatal errors if BSCTRAN has to abort.
$ ON ERROR THEN GOTO END
$ ! Set to echo the BSCTRAN commands to SYS$OUTPUT.
$ SET VERIFY=IMAGE
$ RUN BSCTRAN
HELP ! Display the Help menu (comments are allowed)
!
! You only have to specify the server name once.
SET 2 fwy0 /PAR2=0 ! Set EXTERNAL clock for loopback
SET 2 /START ! Start Link 2
SET 3 /PAR2=1 /START ! or can configure and start together !
SHOW 2 ! Show link configuration
SHOW 3
!
SEND TXT.TEST 2 ! Send and receive a text file
RECEIVE TEST.TXT 3
!
SEND EXE.TEST 2 /TRANS /BIN ! Send and receive an executable file
RECEIVE TEST.EXE 3 /FIX /BIN ! /RECL will be default of 512
!
DEFAULT /FILE=EXE.DAT /FIX /BIN /RECL=512
! User-defined default file
SHOW /DEFAULT ! Show global options
SEND EXE.TEST 2 /TRANS /BIN ! Send an executable file
SHOW 3 ! Receive in EXE.DAT default file
!
SEND TXT1.TEST 2 /NOTEOF ! Concatenate 3 files
SEND TXT2.TEST 2 /NOTEOF ! #2 of 3
SEND TXT3.TEST 2 ! #3 of 3 (don’t use /NOTEOF option)
RECEIVE TEST.CONCAT 3
!
SEND TXT.TEST 2 /CARD ! Send and receive a card-image file
RECEIVE TEST.CARD 3
!
SEND ESCFOR.TEST 2 ! Send a Fortran forms-control file
RECEIVE TEST.ESCFOR 3 /FOR ! (with escape sequence)
!
SEND ESCFOR.TEST 2 ! Send the same file again
RECEIVE TEST.ESCFOR 3 ! It will default even without /FORTRAN
!
SEND FOR.TEST 2 ! Send a Fortran type without escape sequence
RECEIVE TEST.FOR 3 /FOR ! Without ESC char, must specify /FOR
!
Figure 7–3: VMS DCL Command Procedure Example