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
 

 

Can I make a PS dataset into a VSAM dataset

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> DFSORT/ICETOOL
View previous topic :: :: View next topic  
Author Message
jjacome266

New User


Joined: 26 Jan 2006
Posts: 12

PostPosted: Wed May 03, 2006 1:08 am    Post subject: Can I make a PS dataset into a VSAM dataset
Reply with quote

Hi Everyone:

Please I need some help. To make a test with one of my datasets. I have a PS dataset with data. But I need to convert this PS dataset into a VSAM dataset. So I can make the test.

Please let me know if this is possible. And if it is would you please send me an JCL example so I can follow up to make the program.

Thank you

Regards
Jose Jacome
Back to top
View user's profile Send private message

DavidatK

Active Member


Joined: 22 Nov 2005
Posts: 700
Location: Troy, Michigan USA

PostPosted: Wed May 03, 2006 1:41 am    Post subject: Re: Can I make a PS dataset into a VSAM dataset
Reply with quote

The only way I know of doing this is to define a VSAM dataset and repro your PS file into it.

Dave
Back to top
View user's profile Send private message
jjacome266

New User


Joined: 26 Jan 2006
Posts: 12

PostPosted: Wed May 03, 2006 1:58 am    Post subject: Can I make a PS dataset into a VSAM dataset
Reply with quote

Thank you.

I need to do this quickly, Can you send me the JCL program.

Please

Regards
Back to top
View user's profile Send private message
dneufarth

Active User


Joined: 27 Apr 2005
Posts: 241
Location: Cincinnati OH USA

PostPosted: Wed May 03, 2006 2:11 am    Post subject:
Reply with quote

I'm sure someone where you work has some JCL you can use!
Back to top
View user's profile Send private message
priyesh.agrawal

Senior Member


Joined: 28 Mar 2005
Posts: 1452
Location: Chicago, IL

PostPosted: Wed May 03, 2006 11:47 am    Post subject: Re: Can I make a PS dataset into a VSAM dataset
Reply with quote

Code:
//STEP1    EXEC PGM=IDCAMS                           
//SYSPRINT DD SYSOUT=*                             
//SYSIN    DD  *
 DELETE HLQ.VSAM.DATASET                             
 DEFINE CLUSTER (NAME('HLQ.VSAM.DATASET') -           
        REUSE IMBED NOREPLICATE SPEED  SHR(2) -             
        CNVSZ(4096) -                                       
        KEYS(23 0)-                                         
        CYL(100 10)-                                         
        RECSZ(200 200))-                                     
   DATA  (NAME('HLQ.VSAM.DATASET.DATA')) -           
   INDEX (NAME('HLQ.VSAM.DATASET.INDEX') CNVSZ(1024))
//*
//STEP2    EXEC PGM=IDCAMS                               
//SYSPRINT DD SYSOUT=*                                   
//INDSET   DD  DSN=HLQ.PS.INPUT.DATASET,DISP=SHR             
//VSDSET   DD  DSN=HLQ.VSAM.DATASET,DISP=OLD     
//SYSIN   DD  *                                         
 REPRO -                                                 
      INFILE(INDSET) -                                 
      OUTFILE(VSDSET)                               
//*   


Regards,
Priyesh.
Back to top
View user's profile Send private message
jjacome266

New User


Joined: 26 Jan 2006
Posts: 12

PostPosted: Sat May 06, 2006 1:53 am    Post subject: Re: Can I make a PS dataset into a VSAM dataset
Reply with quote

Hi:

I am still trying to make a PS dataset into VSAM dataset but it is giving me an error I am attaching the the error and the JCL. To see if you can help.

Thank you




priyesh.agrawal wrote:
Code:
//STEP1    EXEC PGM=IDCAMS                           
//SYSPRINT DD SYSOUT=*                             
//SYSIN    DD  *
 DELETE HLQ.VSAM.DATASET                             
 DEFINE CLUSTER (NAME('HLQ.VSAM.DATASET') -           
        REUSE IMBED NOREPLICATE SPEED  SHR(2) -             
        CNVSZ(4096) -                                       
        KEYS(23 0)-                                         
        CYL(100 10)-                                         
        RECSZ(200 200))-                                     
   DATA  (NAME('HLQ.VSAM.DATASET.DATA')) -           
   INDEX (NAME('HLQ.VSAM.DATASET.INDEX') CNVSZ(1024))
//*
//STEP2    EXEC PGM=IDCAMS                               
//SYSPRINT DD SYSOUT=*                                   
//INDSET   DD  DSN=HLQ.PS.INPUT.DATASET,DISP=SHR             
//VSDSET   DD  DSN=HLQ.VSAM.DATASET,DISP=OLD     
//SYSIN   DD  *                                         
 REPRO -                                                 
      INFILE(INDSET) -                                 
      OUTFILE(VSDSET)                               
//*   


Regards,
Priyesh.
Back to top
View user's profile Send private message
superk

Moderator Team Head


Joined: 26 Apr 2004
Posts: 4648
Location: Raleigh, NC, USA

PostPosted: Sat May 06, 2006 2:01 am    Post subject: Re: Can I make a PS dataset into a VSAM dataset
Reply with quote

Your input file's records are out of order (exactly what the messages state).

You did sort the input file first, in ascending order, on the key field, right?
Back to top
View user's profile Send private message
jjacome266

New User


Joined: 26 Jan 2006
Posts: 12

PostPosted: Mon May 08, 2006 6:08 pm    Post subject: Re: Can I make a PS dataset into a VSAM dataset
Reply with quote

No I did not sort the input file. How Can I do it? Or do you think is when I am defining the VSAM dataset that I am running out of space. Or the other thing was when I am doing REPRO that I am not defining something that I should know about?

Please help me? Thanks

Regards
Jose Jacome



superk wrote:
Your input file's records are out of order (exactly what the messages state).

You did sort the input file first, in ascending order, on the key field, right?
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 -> DFSORT/ICETOOL All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Unable to catalog a gdg dataset resid... Shovan JCL & VSAM 7 Fri Mar 24, 2017 2:24 pm
No new posts Want to pull the job log into a Mainf... Jishu Mukherjee Compuware & Other Tools 9 Tue Mar 21, 2017 4:48 pm
No new posts Updating a VSAM file with DISP=OLD sheersh JCL & VSAM 8 Tue Mar 14, 2017 6:14 pm
No new posts SORT VSAM file with each field one by... maxsubrat DFSORT/ICETOOL 6 Tue Mar 14, 2017 1:07 pm
No new posts VSAM RLS=NRI while doing IDCAMS sheersh JCL & VSAM 1 Tue Mar 07, 2017 1:55 pm


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