MVSFORUMS.com Forum Index MVSFORUMS.com
A Community of and for MVS Professionals
 
 FAQFAQ   SearchSearch   Quick Manuals   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

How to identify a VSAM file from cobol program

 
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Data Management
View previous topic :: View next topic  
Author Message
suresh05
Beginner


Joined: 14 Sep 2005
Posts: 18
Topics: 8

PostPosted: Wed Dec 21, 2005 9:29 am    Post subject: How to identify a VSAM file from cobol program Reply with quote

Hi,

I have just a basic question.How can we identify if a file used is VSAM or not from a COBOL program. I know we can identify KSDS & RRDS from the ORGANIZATION clause in the Select statement. I am not sure about ESDS becasue the ORGANIZATION clause in the Select statement will be Sequential for VSAM & flat files.
Back to top
View user's profile Send private message
haree_amrid
Beginner


Joined: 21 Dec 2005
Posts: 9
Topics: 3
Location: INDIA

PostPosted: Wed Dec 21, 2005 9:39 am    Post subject: Reply with quote

Hi Suresh,
In the COBOL program if we are using ESDS, the SELECT statement will be like this:-

Code:

SELECT filename ASSIGN TO AS-ddname


means we have to give a prefix AS- before the DDNAME.
_________________
With Regards,
Hareesh Amrideswaran
Back to top
View user's profile Send private message
suresh05
Beginner


Joined: 14 Sep 2005
Posts: 18
Topics: 8

PostPosted: Wed Dec 21, 2005 9:42 am    Post subject: Reply with quote

I am not sure prefix AS- is mandatory for VSAM files. I think it will work without the AS- prefix
Back to top
View user's profile Send private message
Phantom
Data Mgmt Moderator
Data Mgmt Moderator


Joined: 07 Jan 2003
Posts: 1056
Topics: 91
Location: The Blue Planet

PostPosted: Wed Dec 21, 2005 10:14 am    Post subject: Reply with quote

Suresh05,

Please search before posting. Check this link which discusses about identifying the vsam files in a cobol program

http://www.mvsforums.com/helpboards/viewtopic.php?t=1466&highlight=vsam

Hope this helps,

Thanks,
Phantom
Back to top
View user's profile Send private message
Phantom
Data Mgmt Moderator
Data Mgmt Moderator


Joined: 07 Jan 2003
Posts: 1056
Topics: 91
Location: The Blue Planet

PostPosted: Thu Dec 22, 2005 12:56 am    Post subject: Reply with quote

Suresh05,

Also check this link for more information on the ASSIGN Clause,
http://publibz.boulder.ibm.com/cgi-bin/bookmgr_OS390/BOOKS/IGY3LR10/4.2.3?DT=20020920180651

Thanks,
Phantom
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Data Management All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


MVSFORUMS
Powered by phpBB © 2001, 2005 phpBB Group