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

how to move the contents of a PS data set to another PS data


IBM Mainframe Forums -> JCL & VSAM
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
prasannanobody

New User


Joined: 22 Jan 2007
Posts: 3
Location: chennai

PostPosted: Tue Jan 30, 2007 11:15 pm
Reply with quote

hi everyone!
Could anybody tell me how to move the contents of a PS data set to another PS data set through JCL?
Back to top
View user's profile Send private message
dick scherrer

Moderator Emeritus


Joined: 23 Nov 2006
Posts: 19244
Location: Inside the Matrix

PostPosted: Wed Jan 31, 2007 12:09 am
Reply with quote

Hello,

You can use IEBGENER to copy the PS to another PS in a batch job.

If you no longer want the input PS, it can be deleted in the jcl.
Back to top
View user's profile Send private message
guptae

Moderator


Joined: 14 Oct 2005
Posts: 1208
Location: Bangalore,India

PostPosted: Wed Jan 31, 2007 10:20 am
Reply with quote

Hi there,

You can also use sort for this

Code:

//SYSIN    DD  *                                     
   OPTION COPY                                       
/*


& Later if you want to delete input PS you can use
Code:
//SYSIN   DD * 
  OPTION COPY   
  OMIT COND=ALL
/*
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 -> JCL & VSAM

 


Similar Topics
Topic Forum Replies
No new posts Store the data for fixed length COBOL Programming 1
No new posts Data set Rec-Cnt and Byte-Cnt Testing & Performance 2
No new posts SCOPE PENDING option -check data DB2 2
No new posts Check data with Exception Table DB2 0
No new posts JCL EXEC PARM data in C Java & MQSeries 2
Search our Forums:

Back to Top