Hello there,

I find the last sample provided by Peter very effective, because it does not 
involve
any programs and use pure, sole JCL. However, I don't understand why you need 
to EXPORT
and SET the variables first. Let me explain. On a z/OS 2.1 this works:

//H2PC     EXEC PGM=FTP,PARM='(EXIT'                        
//OUTPUT   DD SYSOUT=*                                      
//SYSIN    DD *,SYMBOLS=EXECSYS  
  mypc 
  mypw
  put MY.DSNAME myfile_&sysname..txt              


Symbol &sysname is resolved, no need to code EXPORT or SET in JCL.
The same work for another variable like &jday. But the same does NOT work if I 
code

put MY.DSNAME myfile_&ldate..&ltime..txt              
Both &ldate and &ltime do not get resolved.

Grateful if someone can explain why.
 
Walter Marguccio
z/OS Systems Programmer
BELENUS LOB Informatic GmbH
Munich - Germany

----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [email protected] with the message: INFO IBM-MAIN

Reply via email to