You probably want to use IEBGENER if the files are truly flat files.

Here is a starter set of JCL for you:

//TOTAPE EXEC PGM=IEBGENER 
//SYSPRINT DD SYSOUT=* 
//SYSUT1   DD DSN=input.dsn,DISP=SHR 
//SYSUT2  DD DSN=output.dsn,UNIT=TAPE,DISP=(,CATLG) 
//SYSIN    DD DUMMY 
//FROMTAPE EXEC PGM=IEBGENER 
//SYSPRINT DD SYSOUT=* 
//SYSUT1   DD DSN=output.dsn,DISP=SHR 
//SYSUT2  DD DSN=newdisk.dsn,UNIT=SYSDA,DISP=(,CATLG), 
SPACE=(TRK,(xx,xx),RLSE)
//SYSIN    DD DUMMY 


Lionel B. Dyck, Consultant/Specialist 
?Never attribute to malice what can be caused by miscommunication.? 

NOTICE TO RECIPIENT: If you are not the intended recipient of this e-mail, 
you are prohibited from sharing, copying, or otherwise using or disclosing 
its contents. If you have received this e-mail in error, please notify the 
sender immediately by reply e-mail and permanently delete this e-mail and 
any attachments without reading, forwarding or saving them. Thank you. 



From:
Howard Rifkind <[email protected]>
To:
[email protected]
Date:
03/13/2009 02:19 PM
Subject:
NEED SOME HELP WITH IEBCOPY
Sent by:
IBM Mainframe Discussion List <[email protected]>



Need some help with IEBCOPY,
 
I have a number of flat files which I want to copy to tape and then back 
down to DASD on another system.
 
Would anyone out on the list have a sample job to do this which the are 
willing to share?
 
Any help would be appreciated...Friday night and I would like to go home 
before midnight.
 
Thanks.
_____________
LEGAL NOTICE
Unless expressly stated otherwise, this message is confidential
and may be privileged. It is intended for the addressee(s) only.
Access to this E-mail by anyone else is unauthorized.
If you are not an addressee, any disclosure or copying of the
contents of this E-mail or any action taken (or not taken) in
reliance on it is unauthorized and may be unlawful. If you are not an
addressee, please inform the sender immediately, then delete this
message and empty from your trash.


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


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

Reply via email to