Page 1 of 1

Initialize a VSAM thru JCL

PostPosted: Tue Nov 22, 2011 1:47 am
by Smiles
Hi,

Can anyone please let me know the JCL to initialize a VSAM file.

I know the possibility of a COBOL pgm to access the file shall solve the problem, but I need a JCL. Is there a possibility.

Thanks

Re: Initialize a VSAM thru JCL

PostPosted: Tue Nov 22, 2011 1:59 am
by enrico-sorichetti
Can anyone please let me know the JCL to initialize a VSAM file.


JCL does NOTHING... it sets things up so that a program will be able to run.

what program do You plan to use ?

Re: Initialize a VSAM thru JCL

PostPosted: Tue Nov 22, 2011 2:23 am
by Robert Sample
Write JCL to use SORT, or write JCL to use COBOL, or write JCL to use ...

Re: Initialize a VSAM thru JCL

PostPosted: Tue Nov 22, 2011 2:40 am
by enrico-sorichetti
follow on...
Can anyone please let me know the JCL to initialize a VSAM file.

apart the wrong terminology being used ...
what is the organization of the dataset KSDS,ESDS, ???
in what state do You want to leave the file... empty, one record with a low key, one record with a high key, ???

as You see You have lots of opportunities, so to get reasonable help You will have to explain better what You want to do

Re: Initialize a VSAM thru JCL

PostPosted: Tue Nov 22, 2011 3:14 am
by Smiles
To elaborate more:

Initialize a KSDS File. Want to insert one record with LOW Values.

Re: Initialize a VSAM thru JCL

PostPosted: Tue Nov 22, 2011 3:21 am
by enrico-sorichetti
Want to insert one record with LOW Values.

nothing that could not be done thru a simple IDCAMS REPRO or a simple SORT(DFSORT/SYNCSORT)

if You search the forums You might find a few examples !