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 

Vsam Esds files

 
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Job Control Language(JCL)
View previous topic :: View next topic  
Author Message
baskkarsubbian
Beginner


Joined: 31 Aug 2003
Posts: 18
Topics: 12

PostPosted: Mon Sep 01, 2003 2:35 am    Post subject: Vsam Esds files Reply with quote

Can I use an vsam esds file in a cobol program?
Then what is the syntax of the select class?

select logfilename assign to ddname
organization is ? Sad
Back to top
View user's profile Send private message Yahoo Messenger
butta_mvs
Beginner


Joined: 17 Aug 2003
Posts: 22
Topics: 18

PostPosted: Mon Sep 01, 2003 5:29 am    Post subject: Reply with quote

same as normal cobol pgm but it should be assigned to dd name of jcl.

example
jcl
exec pgm=pgm1
dd1 dd dsn=vsam data set name,disp=shr

cobol
select infile assign to dd1
Back to top
View user's profile Send private message
kolusu
Site Admin
Site Admin


Joined: 26 Nov 2002
Posts: 12382
Topics: 75
Location: San Jose

PostPosted: Mon Sep 01, 2003 8:20 am    Post subject: Reply with quote

baskkarsubbian,


Check this link for an example of select clause for a vsam ESDS file in cobol

http://publibz.boulder.ibm.com/cgi-bin/bookmgr_OS390/BOOKS/IGY3PG00/1.10.2.1?DT=20011203125201

Check this link for a detailed explanation of processing all types of VSAM files

http://publibz.boulder.ibm.com/cgi-bin/bookmgr_OS390/BOOKS/IGY3PG00/1.10?DT=20011203125201

Hope this helps...

cheers

kolusu
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Brian
Beginner


Joined: 12 Aug 2003
Posts: 95
Topics: 6

PostPosted: Mon Sep 01, 2003 10:45 pm    Post subject: Reply with quote

Your Cobol program must contain something like this for ESDS VSAM files

SELECT ESDS ASSIGN TO AS-ESDS
ORGANIZATION IS SEQUENTIAL.
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 -> Job Control Language(JCL) 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