Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups 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: 685
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 SORTJOIN - Copy Matched and Unmatched... Steve Ironmonger DFSORT/ICETOOL 5 Tue Jan 17, 2017 4:26 pm
No new posts Copy RECFM =VB TO FB file with RECL =... sahil41352 DFSORT/ICETOOL 3 Wed Dec 28, 2016 11:29 pm
No new posts Add PD field from 2nd file to PD in 1st Sushant Garje DFSORT/ICETOOL 6 Thu Dec 01, 2016 4:32 pm
No new posts File Aid to File Manager conversion murali3955 IBM Tools 4 Thu Nov 24, 2016 3:41 pm
No new posts How to convert the VBM file to VB or... Sulabh Agrawal JCL & VSAM 4 Fri Nov 18, 2016 1:04 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us