View previous topic :: View next topic
|
Author |
Message |
mjshaheed
New User
Joined: 09 Apr 2007 Posts: 25 Location: Chennai,India
|
|
|
|
Hi,
I need to copy a flat file to a vsam file which is being created at the time of the run.
Basically i am creating a VSAM file and copying the data from flat file to it.
Can you please tell me if the syntax that follows is correct?
Code: |
//LOADSORT EXEC PGM=IDCAMS
//SYSPRINT DD SYSOUT=*
//IN01 DD DSN=COL.FLAT.FILE,
// DISP=SHR
//OUT01 DD DSN=COL.VSAM.FILE,
// DISP=(NEW,CATLG,DELETE),
// DCB=LRECL=29,
// RECORG=KS,KEYLEN=29,KEYOFF=0,
// UNIT=SYSDA,SPACE=(TRK,(10,10),RLSE)
//SYSIN DD *
REPRO INFILE(IN01) OUTFILE(OUT01) REUSE
//*
|
Thanks,
Shahul |
|
Back to top |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19244 Location: Inside the Matrix
|
|
Back to top |
|
|
CICS Guy
Senior Member
Joined: 18 Jul 2007 Posts: 2146 Location: At my coffee table
|
|
|
|
Isn't there a REUSE verb for IDCAMS? |
|
Back to top |
|
|
superk
Global Moderator
Joined: 26 Apr 2004 Posts: 4652 Location: Raleigh, NC, USA
|
|
|
|
Off hand, without actually running the code, it looks to me like it should work. Shahul, did you experience any problems with it? |
|
Back to top |
|
|
expat
Global Moderator
Joined: 14 Mar 2007 Posts: 8797 Location: Welsh Wales
|
|
|
|
And is the data sorted in key sequence ? |
|
Back to top |
|
|
|