Howard,

First, if by 'flat files' you mean sequential files, then I don't think IEBCOPY 
is want you want. You should use IEBGENER to copy flat/sequential files.

But, for IEBCOPY, here's an example:

//S1   EXEC PGM=IEBCOPY            
//SYSPRINT DD SYSOUT=*             
//IN     DD DISP=SHR,DSN=XXX       
//OUT    DD DISP=SHR,DSN=XXX.NEW   
//SYSIN    DD *                    
  C I=IN,O=OUT                     
/*
//

The 'IN' DD statement defines the input data set. The 'OUT' DD statement 
defines the output data set. If you want to assign the output to a tape file 
then you will have to code UNIT=TAPE (or whatever you define you tape drives as 
using an esoteric name) and you may also need a VOL= parameter as well. When 
you copy an input PDS to an output sequential file, IEBCOPY 'unloads' the PDS 
to the sequential file. Going in the opposite direction, IEBCOPY will 'load' 
the sequential file back into a  PDS.

If you do use IEBGENER, the SYSUT1 DD statement defines the input file and the 
SYSUT2 statement defines the output file. IEBGENER will copy the input file to 
the output file without any control cards (SYSIN DD) and the output file will 
have the same file attributes as the input file.

HTH

HITACHI
 DATA SYSTEMS 
Raymond E. Noal 
Senior Technical Engineer 
Office: (408) 970 - 7978 


-----Original Message-----
From: IBM Mainframe Discussion List [mailto:[email protected]] On Behalf Of 
Howard Rifkind
Sent: Friday, March 13, 2009 2:17 PM
To: [email protected]
Subject: NEED SOME HELP WITH IEBCOPY

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