IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

IEBCOPY syntax from command line


IBM Mainframe Forums -> TSO/ISPF
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
DwChilders

New User


Joined: 14 Apr 2006
Posts: 7

PostPosted: Tue May 09, 2006 3:04 am
Reply with quote

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
View user's profile Send private message
satya12

New User


Joined: 25 Apr 2006
Posts: 32
Location: India

PostPosted: Thu May 11, 2006 2:19 am
Reply with quote

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
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> TSO/ISPF

 


Similar Topics
Topic Forum Replies
No new posts REXX/CMS How to place command console... CLIST & REXX 4
No new posts Help needed in automation cics transa... CLIST & REXX 1
No new posts How to Login in to cics region and is... CICS 9
No new posts Passing containers on START command CICS 4
No new posts RACF - Rebuild SETROPTS command which... All Other Mainframe Topics 3
Search our Forums:

Back to Top