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

How to copy a flat file to VSAM file


IBM Mainframe Forums -> JCL & VSAM
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
Vayunandanrao

New User


Joined: 22 Mar 2005
Posts: 9

PostPosted: Wed Apr 06, 2005 2:27 pm
Reply with quote

hi,
How to copy a flat file to VSAM file
Back to top
View user's profile Send private message
priyesh.agrawal

Senior Member


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

PostPosted: Wed Apr 06, 2005 4:16 pm
Reply with quote

Using IDCAMS, you can copy a flat file to a VSAM FIle.

//STEP EXEC PGM=IDCAMS
//SYSPRINT DD SYSOUT=*
//INFILE DD DSN=FLAT.FILE,
// DISP=(OLD,DELETE,KEEP)
//OUTFILE DD DSN=VSAM.FILE,
// DISP=OLD
//SYSIN DD *
REPRO-
INFILE(INFILE)-
OUTFILE(OUTFILE)
/*

Regards,

Priyesh
Back to top
View user's profile Send private message
atul

New User


Joined: 06 Apr 2005
Posts: 3

PostPosted: Thu Apr 07, 2005 4:41 pm
Reply with quote

Using Repro
As the code is already provide by priyesh.
But i would like to provide u a table, try to fill it!
Y=Yes, N=No
For Copying:
I mean from a ps to ps, esds to rrds, and so on...
Chk urself!
Reply
PS ESDS RRDS KSDS
PS Y Y Y Y

ESDS Y

RRDS

KSDS
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 Compare 2 files and retrive records f... DFSORT/ICETOOL 3
No new posts FTP VB File from Mainframe retaining ... JCL & VSAM 8
No new posts Extract the file name from another fi... DFSORT/ICETOOL 6
No new posts How to split large record length file... DFSORT/ICETOOL 10
No new posts Extracting Variable decimal numbers f... DFSORT/ICETOOL 17
Search our Forums:

Back to Top