Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Panel
//S1 EXEC UCMDPRC
//UNVIN    DD DISP=SHR,DSN=hlq.input.file
//LOGONDD  DD DISP=SHR,DSN=hlq.userid(userid)
//SCRIPTDD DD *
DATEN=`date +%d%m`
export DATEN
echo $DATEN
/opt/universal/bin/ucopy \ 
-output /tmp/output$DATEN.file


Anchor
103197410319761031974
1031976
The JCL procedure UCMDPRC is used to execute the command. The command is sent to a remote system named dallas for execution. The stdout redirection character > is used with the ucopy command to direct stdout to a local data set on the remote server. The file name is created with a date variable, which is set to the current date in the commands preceding the ucopy command. The path to the ucopy binary must be specified if the directory is not defined in the user's path environmental variable.

...

Option

Description

-script

DD from which to read a script file. The script file is sent to the remote system for execution.

-encryptedfile

DD from which to read an encrypted command options file.

-host

Directs the command to a computer with a host name of dallas.

...