Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Profile Log in to check your private messages Log in
 
how to identify a programe if its using a VASM file

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> COBOL Programming
View previous topic :: :: View next topic  
Author Message
sumannaidu

New User


Joined: 21 May 2005
Posts: 13
Location: Bangalore

PostPosted: Wed Sep 19, 2007 5:23 pm    Post subject: how to identify a programe if its using a VASM file
Reply with quote

Hi,

By seeing a program how can we say its using a VSAM file and which VSAM its using.?

rgds
suman
Back to top
View user's profile Send private message

William Thompson

Global Moderator


Joined: 18 Nov 2006
Posts: 3158
Location: Tucson AZ

PostPosted: Wed Sep 19, 2007 5:29 pm    Post subject:
Reply with quote

Isn't the key the SELECT statement?
Back to top
View user's profile Send private message
agkshirsagar

Active Member


Joined: 27 Feb 2007
Posts: 686
Location: Earth

PostPosted: Wed Sep 19, 2007 5:29 pm    Post subject:
Reply with quote

In a program-
If it contains ORGANIZATION IS INDEXED then it is using KSDS.
If it contains ORGANIZATION IS RELATIVE then it is using RRDS.
If SELECT clause contains ASSIGN TO AS-xxxxxxxx then ESDS.
Now to find which VSAM-
search for program name in your PROCLIB and JCLLIB.
Read the procedure for the DDNAME you got from the program. ( Remember 'assign to xxxxxxxx' will be DDNAME used in JCL )
Please let us know if I missed something or interpreted your question wrongly icon_smile.gif
Back to top
View user's profile Send private message
diwa_thilak

Active User


Joined: 13 Jul 2006
Posts: 205
Location: At my desk

PostPosted: Fri Sep 21, 2007 11:42 am    Post subject:
Reply with quote

Suman,

The simple way will be as suggested by Abhijit. One more view is give a scan for the program and identify the job using the program.

If you open the job, you can easily identify the inputs to the program and their types.
Back to top
View user's profile Send private message
BalaMuraliL

New User


Joined: 01 Aug 2007
Posts: 10
Location: Pune

PostPosted: Fri Sep 21, 2007 3:20 pm    Post subject:
Reply with quote

Hi Suman,

By seeing ORGANIZATION you can decide whether it is VSAM or Non-VSAM.

As agkshrisagar mentioned above, the one way is

In a program-
If it contains ORGANIZATION IS INDEXED then it is using KSDS.
If it contains ORGANIZATION IS RELATIVE then it is using RRDS.
If SELECT clause contains ASSIGN TO AS-xxxxxxxx then ESDS.

Second way is .. In SELECT card, if you find "RECORD KEY IS" phrase then it means it is KSDS VSAM file / "RELATIVE KEY IS" means then it is RRDS VSAM file.

Hope this information will hlep you.. let me know if you have any questions. Thanks.
Back to top
View user's profile Send private message
sumannaidu

New User


Joined: 21 May 2005
Posts: 13
Location: Bangalore

PostPosted: Fri Sep 21, 2007 3:53 pm    Post subject:
Reply with quote

i thank you all for the explanation.
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 -> COBOL Programming All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Execute JCL step based on the content... sprikitik JCL & VSAM 2 Tue Oct 03, 2017 10:03 am
This topic is locked: you cannot edit posts or make replies. PS file data should be passed as symb... d_sarlie JCL & VSAM 15 Tue Oct 03, 2017 5:18 am
No new posts Garbage on output file Hervey Martinez SYNCSORT 4 Wed Sep 27, 2017 12:50 am
No new posts File Aid tool to compare numeric data balaji81_k Compuware & Other Tools 2 Tue Sep 26, 2017 3:35 am
No new posts Compare yesterday's date to the one o... migusd SYNCSORT 11 Fri Sep 22, 2017 11:35 pm

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us