| IBM MAINFRAME HELP & SUPPORT FORUMS Technical Forums for IBM Mainframe Applications like COBOL, JCL, CICS, DB2, FileAid, DFSORT, Endevor, Xpediter, CoolGen, CA-7&11, AbendAid, IMS, IDMS, PL/I, MqSeries, SyncSort, Assembler, ChangeMan, Easytrieve, InterTest, REXX, CLIST etc...
|
| View previous topic :: View next topic |
| Author |
Message |
DwChilders
Joined: 14 Apr 2006
Posts: 7
|
| Posted: Tue May 09, 2006 3:04 am Post subject: IEBCOPY syntax from command line |
|
|
| There are loads of examples of IEBCOPY within JCL, but for the life of me I can't locate any examples of IEBCOPY from the command line. Can anyone forward a simple command that copies from one PDS member to a flat dataset? |
|
| Back to top |
|
satya12
Joined: 25 Apr 2006
Posts: 23
Location: India
|
| Posted: Thu May 11, 2006 2:19 am Post subject: Re: IEBCOPY syntax from command line |
|
|
Hi
You can give below commands at Ready prompt
ALLOC FI(SYSUT1) SHR DA('INPUT PDS')
ALLOC FI(SYSUT2) OLD DA('OUT PUT PDS')
ALLOC FI(SYSPRINT) SYSOUT"
ALLOC FI(SYSIN) SHR DA('control statement datalib member')
CALL 'SYS1.LINKLIB(IEBCOPY)'
FREE FI(SYSUT1 SYSUT2 SYSIN SYSPRINT)
control stmt can be COPY OUTDD=SYSUT2,INDD=SYSUT1
If you want to copy a single PDS member to a flat file go inside the PDS type "C" against the member then you'll another screen to asking for the destination dataset.
Sorry if you already knew this.
Thanks
Sathya |
|
| Back to top |
|
| |
THIS IS AN ARCIVE FORUM IN READ ONLY MODE. IF YOU WANT TO ASK YOUR DOUBTS USE THE ACTUAL FORUM
|