IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

how to identify a programe if its using a VASM file


IBM Mainframe Forums -> COBOL Programming
Post new topic   Reply to topic
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
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: 3156
Location: Tucson AZ

PostPosted: Wed Sep 19, 2007 5:29 pm
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: 691
Location: Earth

PostPosted: Wed Sep 19, 2007 5:29 pm
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
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
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
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 View Bookmarks
All times are GMT + 6 Hours
Forum Index -> COBOL Programming

 


Similar Topics
Topic Forum Replies
No new posts FTP VB File from Mainframe retaining ... JCL & VSAM 1
No new posts Extract the file name from another fi... DFSORT/ICETOOL 6
No new posts How to split large record length file... DFSORT/ICETOOL 10
No new posts Extracting Variable decimal numbers f... DFSORT/ICETOOL 17
No new posts SFTP Issue - destination file record ... All Other Mainframe Topics 2
Search our Forums:

Back to Top