Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist 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: 252
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: 4650
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 Copy 4 byte of data from the last rec... arunsoods DFSORT/ICETOOL 9 Fri Oct 06, 2017 12:15 pm
No new posts opening a dataset after reading it fr... arunsoods DFSORT/ICETOOL 5 Wed Oct 04, 2017 3:54 pm
No new posts VSAM RLS Wait time blayek JCL & VSAM 2 Mon Oct 02, 2017 9:05 pm
No new posts Updating the Trailer count in variabl... satheshbabur DFSORT/ICETOOL 6 Wed Aug 30, 2017 9:49 pm
No new posts Mainframe dataset split purushottam DFSORT/ICETOOL 13 Tue Aug 29, 2017 12:28 pm

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us