Versions Compared

Key

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

...

Anchor
1133992
1133992
The UNIX script uses the tar command to extract the files to be restored from the tar.Z backup. The tar command is directed to read the tar.Z file from its standard input with the tar command line option -f -, which results in it reading from the UCMD Manager UNVIN ddname. The Manager UNVIN ddname allocates the tar.Z backup data set that was created previously.


Panel
//jobname  JOB CLASS=A,MSGCLASS=X,NOTIFY=&SYSUID
//* 
//  JCLLIB ORDER=SBI.UNV.SUNVSAMP 
//* 	
//STEP1	 EXEC UCMDPRC, 
//  STDIN='DISP=SHR,DSN=hlq.BKUP.TAR.Z' 
//MYSCRIPT DD *
# Check if the directory exists.  If it does not, create it.
  if test ! -d /export/home/username/fnd
     then mkdir /export/home/username/fnd || exit 8
  fi 
  cd /export/home/username/fnd || exit 8
# Note: Not all tar commands recognize the 'B' argument.  If you 
# receive an error message indicating this from the remote 
# UNIX system, remove the 'B' argument. 
# The 'B' argument is used to force tar to read multiple 
# times to fill the block.  

tar -xzvBf - || exit 8

//SYSIN DD *
-script myscript 
-host   hostname  
-userid username  
-pwd    password   
-stdin -mode binary  
/*



SYSIN Options

Anchor
1134046
1134046
The SYSIN options used in this example are:

Anchor
1134094
1134094

...

...

Option

...

stylebackground-color: #F0F0F0; border-bottom-color: #E8E8E8; border-bottom-style: solid; border-bottom-width: 1px; border-left-color: #E8E8E8; border-left-style: solid; border-left-width: 1px; border-right-color: #E8E8E8; border-right-style: solid; border-right-width: 1px; border-top-color: #E8E8E8; border-top-style: solid; border-top-width: 1px; padding-bottom: 3pt; padding-left: 4pt; padding-right: 4pt; padding-top: 4pt; vertical-align: middle; width: 324pt;

...

Description

...

...

...

...

...

ddname from which to read the script file. The script file is sent to the remote system by UCMD Manager for execution.

...

...

...

...

Host name or IP address of the remote system on which to execute the script

...

styleborder-bottom-color: #E8E8E8; border-bottom-style: solid; border-bottom-width: 1px; border-left-color: #E8E8E8; border-left-style: solid; border-left-width: 1px; border-right-color: #E8E8E8; border-right-style: solid; border-right-width: 1px; border-top-color: #E8E8E8; border-top-style: solid; border-top-width: 1px; padding-bottom: 3pt; padding-left: 4pt; padding-right: 4pt; padding-top: 4pt; vertical-align: top;

...

styleborder-bottom-color: #E8E8E8; border-bottom-style: solid; border-bottom-width: 1px; border-left-color: #E8E8E8; border-left-style: solid; border-left-width: 1px; border-right-color: #E8E8E8; border-right-style: solid; border-right-width: 1px; border-top-color: #E8E8E8; border-top-style: solid; border-top-width: 1px; padding-bottom: 3pt; padding-left: 4pt; padding-right: 4pt; padding-top: 4pt; vertical-align: top;

...

.

-userid

Remote user ID with which to execute the command.

...

...

...

...

Password for the user ID.

...

...

...

...

...

Starts the stdin options. All options read afterwards are applied to the stdin file. The first option not recognized as a standard file option terminates the stdin option list.

...

...

...

...

styleborder-bottom-color: #E8E8E8; border-bottom-style: solid; border-bottom-width: 1px; border-left-color: #E8E8E8; border-left-style: solid; border-left-width: 1px; border-right-color: #E8E8E8; border-right-style: solid; border-right-width: 1px; border-top-color: #E8E8E8; border-top-style: solid; border-top-width: 1px; padding-bottom: 3pt; padding-left: 4pt; padding-right: 4pt; padding-top: 4pt; vertical-align: top;

...

Transfer mode for the

...

stdout file: binary. Since a backup file is a tar, compressed format contains binary data, it should not be translated as text data.

Components

Universal Command Manager for z/OS

...