Initialize a VSAM thru JCL



Help for IBM's record-oriented filesystem VSAM, ESDS, KSDS, RRDS, LDS and Storage management Subsystems

Initialize a VSAM thru JCL

Postby Smiles » Tue Nov 22, 2011 1:47 am

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
Thanks
Smiles
Smiles
 
Posts: 5
Joined: Wed Nov 16, 2011 3:06 am
Location: Michigan
Has thanked: 0 time
Been thanked: 0 time

Re: Initialize a VSAM thru JCL

 

Re: Initialize a VSAM thru JCL

Postby enrico-sorichetti » Tue Nov 22, 2011 1:59 am

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 ?
cheers
enrico
When I tell somebody to RTFM or STFW I usually have the page open in another tab/window of my browser,
so that I am sure that the information requested can be reached with a very small effort
enrico-sorichetti
Global moderator
 
Posts: 2644
Joined: Fri Apr 18, 2008 11:25 pm
Has thanked: 0 time
Been thanked: 130 times

Re: Initialize a VSAM thru JCL

Postby Robert Sample » Tue Nov 22, 2011 2:23 am

Write JCL to use SORT, or write JCL to use COBOL, or write JCL to use ...
Robert Sample
Global moderator
 
Posts: 3367
Joined: Sat Dec 19, 2009 8:32 pm
Location: Dubuque, Iowa, USA
Has thanked: 1 time
Been thanked: 222 times

Re: Initialize a VSAM thru JCL

Postby enrico-sorichetti » Tue Nov 22, 2011 2:40 am

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
cheers
enrico
When I tell somebody to RTFM or STFW I usually have the page open in another tab/window of my browser,
so that I am sure that the information requested can be reached with a very small effort
enrico-sorichetti
Global moderator
 
Posts: 2644
Joined: Fri Apr 18, 2008 11:25 pm
Has thanked: 0 time
Been thanked: 130 times

Re: Initialize a VSAM thru JCL

Postby Smiles » Tue Nov 22, 2011 3:14 am

To elaborate more:

Initialize a KSDS File. Want to insert one record with LOW Values.
Thanks
Smiles
Smiles
 
Posts: 5
Joined: Wed Nov 16, 2011 3:06 am
Location: Michigan
Has thanked: 0 time
Been thanked: 0 time

Re: Initialize a VSAM thru JCL

Postby enrico-sorichetti » Tue Nov 22, 2011 3:21 am

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 !
cheers
enrico
When I tell somebody to RTFM or STFW I usually have the page open in another tab/window of my browser,
so that I am sure that the information requested can be reached with a very small effort
enrico-sorichetti
Global moderator
 
Posts: 2644
Joined: Fri Apr 18, 2008 11:25 pm
Has thanked: 0 time
Been thanked: 130 times


Return to VSAM/SMS

 


  • Related topics
    Replies
    Views
    Last post