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

Need JCl for copying PS to KSDS


IBM Mainframe Forums -> JCL & VSAM
Post new topic   Reply to topic
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
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
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
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 Developer


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

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

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

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

 


Similar Topics
Topic Forum Replies
No new posts Merge two VSAM KSDS files into third ... JCL & VSAM 6
No new posts Panvalet - 9 Character name - Issue c... CA Products 6
No new posts Copying GDG version(all/few) from pro... CLIST & REXX 13
No new posts VSAM KSDS CREATION AND LOAD WITH RAND... JCL & VSAM 1
No new posts Copying large number of datasets to m... JCL & VSAM 17
Search our Forums:

Back to Top