Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

Need JCl for copying PS to KSDS

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
View previous topic :: :: View next topic  
Author Message
abirami_2006

New User


Joined: 29 Dec 2005
Posts: 7

PostPosted: Thu May 25, 2006 9:51 am    Post subject: Need JCl for copying PS to KSDS
Reply with quote

Hi all,

Can any body tell me how to copy PS to KSDS?

Thanks in advance
Abirami
Back to top
View user's profile Send private message

gskulkarni

New User


Joined: 01 Mar 2006
Posts: 70

PostPosted: Thu May 25, 2006 10:01 am    Post subject:
Reply with quote

There are various methods.
SORT, IDCAMS are the most common.

make sure your PS file is sorted in the order of KSDS file Key.

Code:
//STEP010  EXEC PGM=IDCAMS
//SYSOUT   DD SYSOUT=*
//SYSPRINT DD SYSOUT=*
//SYSUDUMP DD SYSOUT=*//*
//INFILE   DD  DISP=SHR,
//             DSN='your_sequential_file'
//OUTFILE  DD  DISP=SHR,
//             DSN='your ksds file'
//*
//SYSIN    DD *
  REPRO INFILE(INFILE) OUTFILE(OUTFILE)
/*
Back to top
View user's profile Send private message
Pollyannaish

New User


Joined: 09 Jul 2005
Posts: 31
Location: Pune, India

PostPosted: Fri May 26, 2006 11:41 am    Post subject:
Reply with quote

gskulkarni wrote:
There are various methods.
SORT, IDCAMS are the most common.

/*



Hi,
I am not sure whether SORT can be used to copy PS into KSDS.
Please let me know if you have information.

Prem
Back to top
View user's profile Send private message
Frank Yaeger

DFSORT Moderator


Joined: 15 Feb 2005
Posts: 7130
Location: San Jose, CA

PostPosted: Fri May 26, 2006 8:17 pm    Post subject:
Reply with quote

You can use DFSORT to do this. See my post in the following thread:

http://ibmmainframes.com//viewtopic.php?t=11285
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Several errors during building altern... Andi1982 JCL & VSAM 11 Wed Jul 06, 2016 7:39 pm
No new posts Differences between copying members b... E.LAI TSO/ISPF 8 Wed Mar 30, 2016 12:35 pm
No new posts Copying VSAM to VSAM with variable re... mfuser.84 DFSORT/ICETOOL 1 Mon Oct 12, 2015 5:00 pm
No new posts Empty KSDS Files Jeenu Bajaj JCL & VSAM 6 Fri Aug 21, 2015 2:44 pm
No new posts VB to KSDS repro kranthikumarb JCL & VSAM 1 Fri Aug 14, 2015 4:45 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us