The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Advanced & Expert Users
.
google unix.com




View Single Post in the UNIX and Linux Forums - Click on the Thread or Permalink to View Entire Thread -->
  #2 (permalink)  
Old 07-15-2008
jyoung jyoung is offline
Registered User
  
 

Join Date: Nov 2001
Location: Flint, MI
Posts: 228
Hi,
We do a get from the mainframe this way:
Code:
//FTPSTEP EXEC PGM=FTP                                         
//SYSPRINT DD SYSOUT=*                                         
//DTARD DD DSN=PGLHU.PA.DTAR(+1),DISP=(NEW,CATLG,KEEP),        
//      SPACE=(TRK,(500,100),RLSE),                            
//      DCB=(RECFM=FB,LRECL=132,BLKSIZE=3960)                  
//OUTPUT DD SYSOUT=*                                           
//INPUT DD *                                                   
  0.0.0.0 (exit                                           
  user password                                                   
  site dcbdsn=pglhu.pa.dtar                                    
  cd /c:/dtar                                                  
  get dtar.000 //DD:DTARD                                      
  delete /c:/dtar/dtar.bkp                                     
  rename /c:/dtar/dtar.000 /c:/dtar/dtar.bkp                   
  quit                                                         
//*