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 

Read versus Read ..key is.

 
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Application Programming
View previous topic :: View next topic  
Author Message
krk123
Beginner


Joined: 03 Jun 2003
Posts: 58
Topics: 19

PostPosted: Wed Mar 10, 2004 4:01 pm    Post subject: Read versus Read ..key is. Reply with quote

Hi,
When defining the file in file control section for a VSAM file, if we specify
record key WS-XXX.
and in the program
move xxx to ws-xxx.

dont we need to specify READ FILE-NAME KEY is ws-xxx?
will read file-name in to ws-record serve the purpose?

my question: is " key is " not necessary?

Regards,
KRK123.
Back to top
View user's profile Send private message
kolusu
Site Admin
Site Admin


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

PostPosted: Thu Mar 11, 2004 6:59 am    Post subject: Reply with quote

Krk123,

You don't need a READ FILE-NAME KEY is ws-xxx. There is a start command which sets up the key you want to read. A read does not require a start and and a readnxt will read sequentially from the first record defined in the key.

Also check this link for detailed explanation of Reading records from a VSAM file

Hope this helps...

Cheers

Kolusu
_________________
Kolusu
www.linkedin.com/in/kolusu
Back to top
View user's profile Send private message Send e-mail Visit poster's website
krk123
Beginner


Joined: 03 Jun 2003
Posts: 58
Topics: 19

PostPosted: Thu Mar 11, 2004 10:53 am    Post subject: Reply with quote

Thanks Kolusu.

Regards,
KRK123
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 -> Application Programming 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