> This should sound as simple, but  ......
> 
> 
> 
> How do I copy a VSAM KSDS dataset to another VSAM dataset with the
same
> attribute as the 'copying from' dataset, without going thru the
process
> of Define?
> 
> 
> 
> An example of either a REXX code or a JCL will be of help


//JS0040   EXEC PGM=IDCAMS 
//SYSPRINT DD SYSOUT=* 
//IN1      DD  DISP=(SHR,KEEP,KEEP), 
//         DSN=SMS.SCDS01.SCDS 
//OUT1     DD  DSN=MYDSN.SCDS01.SCDS, 
//         DISP=(NEW,CATLG,DELETE), 
//         LIKE=SMS.SCDS01.SCDS 
//* 
//SYSIN    DD * 
 REPRO INFILE(IN1) OUTFILE(OUT1) 
**************************************************************************************
This e-mail message and all attachments transmitted with it may contain legally 
privileged and/or confidential information intended solely for the use of the 
addressee(s). If the reader of this message is not the intended recipient, you 
are hereby notified that any reading, dissemination, distribution, copying, 
forwarding or other use of this message or its attachments is strictly 
prohibited. If you have received this message in error, please notify the 
sender immediately and delete this message and all copies and backups thereof.

Thank you.
**************************************************************************************

----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to lists...@bama.ua.edu with the message: GET IBM-MAIN INFO
Search the archives at http://bama.ua.edu/archives/ibm-main.html

Reply via email to