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
 

 

Convert/Copy a serial file into a VSAM file, how?

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

New User


Joined: 17 Nov 2005
Posts: 60

PostPosted: Thu Jun 08, 2006 7:42 am    Post subject: Convert/Copy a serial file into a VSAM file, how?
Reply with quote

Hi, all:

What to be done if I want to convert a PS file into a VSAM file?

Given:
PS file's length is 1000, its record layout is below:
RMRELN-REC.
05 OUT7-CUSTNUMB PIC 9(09). <--- It will be the the key of the VSAM
05 OUT7-RELN-NUMB PIC 9(09).
05 OUT7-PP-ACCTNUMB PIC X(20).
05 OUT7-PP-PRODTYPE PIC X(05).
...

The VSAM file's length is also 1000 with the same layout of the PS file.

Many thanks!
Back to top
View user's profile Send private message

parikshit123

Active User


Joined: 01 Jul 2005
Posts: 269
Location: India

PostPosted: Thu Jun 08, 2006 10:21 am    Post subject:
Reply with quote

Hi,
You can use following code to copy PS file into VSAM cluster.
I assume that the vsam cluster is allocated prior to copy.


Code:
 000047 //*********************************************************************
 000048 //**            copy FLAT FILE INTO VSAM  FILE                                 
 000049 //*********************************************************************
 000050 //STEP040  EXEC PGM=IDCAMS                                             
 000051 //IN01     DD DSN=ABCD.EFGH.IJKLMN,DISP=SHR           <== PS FILE
 000052 //OUT01    DD DSN=ABCD.EFGH.IJKLMN.VSAM,DISP=OLD      <== VSAM FILE       
 000056 //SYSPRINT DD SYSOUT=*                                                 
 000057 //SYSOUT   DD SYSOUT=*                                                 
 000058 //SYSIN    DD *
 000058     REPRO INFILE(IN01) OUTFILE(OUT01) REUSE
 000058 /*
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 Fail to change physical VSAM filename... jacobdng CICS 7 Fri Jan 20, 2017 12:36 pm
No new posts SORTJOIN - Copy Matched and Unmatched... Steve Ironmonger DFSORT/ICETOOL 5 Tue Jan 17, 2017 4:26 pm
No new posts how to recover an uncataloged VSAM da... archanamuthukrishnan All Other Mainframe Topics 3 Wed Jan 11, 2017 6:18 pm
No new posts Underlying DB2 VSAM LDS - SMF recording vasanthz All Other Mainframe Topics 6 Thu Jan 05, 2017 4:20 am
No new posts HALDB data refresh/copy from producti... vineetanand2007 IMS DB/DC 1 Mon Jan 02, 2017 11:16 am


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