Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Profile Log in to check your private messages Log in
 
Read particular record from KSDS dataset

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> COBOL Programming
View previous topic :: :: View next topic  
Author Message
sakthisiga
Warnings : 1

New User


Joined: 11 Jun 2009
Posts: 60
Location: Chennai

PostPosted: Tue Sep 22, 2009 1:09 pm    Post subject: Read particular record from KSDS dataset
Reply with quote

Hi all,


I have a KSDS dataset with some record. I have to access a particular by using the key. I want to read that value and store into a variable.


Can anyone send me the READ syntax to read a particular record in dataset by using key and how to store the values into a variable.
Back to top
View user's profile Send private message

enrico-sorichetti

Global Moderator


Joined: 14 Mar 2007
Posts: 10327
Location: italy

PostPosted: Tue Sep 22, 2009 1:16 pm    Post subject: Reply to: Read particular record from KSDS dataset
Reply with quote

click on the programs link at the top of the page
Back to top
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8593
Location: Back in jolly old England

PostPosted: Tue Sep 22, 2009 1:16 pm    Post subject:
Reply with quote

1) Which programming language are you using - to allow us to move this to the correct forum.
2) Please post the code that you are using and the problems experienced
Back to top
View user's profile Send private message
sakthisiga
Warnings : 1

New User


Joined: 11 Jun 2009
Posts: 60
Location: Chennai

PostPosted: Tue Sep 22, 2009 2:17 pm    Post subject:
Reply with quote

I am using COBOL programming language.
Back to top
View user's profile Send private message
naveenmundhra

New User


Joined: 24 Feb 2008
Posts: 3
Location: hyderabad, India

PostPosted: Fri Sep 25, 2009 4:00 pm    Post subject: Reply to: Read particular record from KSDS dataset
Reply with quote

I think you need a COBOL code -

MOVE value TO key1.
READ file-name RECORD [INTO ws-field]
INVALID KEY do something
NOT INVALID KEY do something else
END-READ.


Hope it helps you.....
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 Copy 4 byte of data from the last rec... arunsoods DFSORT/ICETOOL 9 Fri Oct 06, 2017 12:15 pm
No new posts opening a dataset after reading it fr... arunsoods DFSORT/ICETOOL 5 Wed Oct 04, 2017 3:54 pm
No new posts how to see when the last read access ... Mike 1304 DB2 1 Tue Sep 12, 2017 7:52 pm
No new posts Updating the Trailer count in variabl... satheshbabur DFSORT/ICETOOL 6 Wed Aug 30, 2017 9:49 pm
No new posts Mainframe dataset split purushottam DFSORT/ICETOOL 13 Tue Aug 29, 2017 12:28 pm

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us