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: 19243
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: 1209
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 All times are GMT + 6 Hours
Forum Index -> JCL & VSAM

 


Similar Topics
Topic Forum Replies
No new posts Format data from multiple records usi... SYNCSORT 4
No new posts FileAid move data from two files to o... Compuware & Other Tools 5
No new posts Structured Data and Nested Loops via ... COBOL Programming 0
No new posts Alternate key data extracttion COBOL Programming 13
No new posts db2 vs static data COBOL Programming 1
Search our Forums:


Back to Top