![]() |
RDAC - transfer files with RDAC to other systems
ONXRDAC ['str1'=...] [host2] [,user-id2] [,acct2] [, passw2] [, rem-succ] [,direct] [,print] [,time]
If no operands are specified, they will be requested from a special FT parameter mask (see above).
'str1'=... The target file name is constructed such that the source file name will be searched for 'str1' and replaced by 'str2'. By definition, every name is suffixed with a blank string '_', and prefixed with an empty string '' . If the source file does not contain 'str1', the file will not be transferred.
If this operand is omitted, the files will have the same name in the remote system as in the local system.
host2 Symbolic name of the remote system.
The name host2 is not that defined in PDN, but the partner name of the called system according to the RDAC generation.
user-id2 Userid in remote system to which or from which the file should be transferred.
Standard: same userid as on the local system.
acct2 Account number.
Standard: same account number as on the local system.
passw2 Logon password for the userid on the remote system ( [C]'...' | X'...' ).
Standard: no password.
rem-succ Remote Success Procedure. The name of a procedure to be executed in the event of the transfer being successful.
proc,* The DO procedure specified as proc will use the name of the transferred file as a parameter.
/cmd .... Following the successful transfer of the file, the specified BS2000 command will be executed on the remote system. If an '*' is specified anywhere in the command, the name of the transferred file will be substituted at that point.
'/cmd ...' Following the successful transfer, the specified command will be executed on the remote system. In this case, however, '*' will not be substituted with the file name.
Standard: no Remote Success Procedure.
direct Transfer direction.
possible values: FROM | TO
Standard: TO.
print should the file be printed on a remote printer?
possible values: NO | YES | form [, pr-params]
Specifying a value other than YES or NO will be interpreted as a form description, and will result in the file being printed with the specified string being used as the FORM parameter.
One or more print parameters can optionally be specified after YES | form as follows:
pr-params SPACE= | COPIES= | HEADER= | LINES=nn
Standard Print ? : NO.
time hh:mm The transfer should not begin before the specified time.
Standard: The transfer should begin as soon as possible.
Notes:
If the parameters up to and including acct-nr2 are specified explicitly in the ONXRDAC statement, the RDAC parameter mask will not be displayed, and the standard values will be used for the unspecified parameters.
For further information on transfering files with RDAC - in particular file transfer between BS2000 and MS-DOS systems - see Chapter 12 "File Transfer with FT-BS2000/RDAC".