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

Read particular record from KSDS dataset


IBM Mainframe Forums -> COBOL Programming
Post new topic   Reply to topic
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
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

Superior Member


Joined: 14 Mar 2007
Posts: 10873
Location: italy

PostPosted: Tue Sep 22, 2009 1:16 pm
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: 8797
Location: Welsh Wales

PostPosted: Tue Sep 22, 2009 1:16 pm
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
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
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 View Bookmarks
All times are GMT + 6 Hours
Forum Index -> COBOL Programming

 


Similar Topics
Topic Forum Replies
No new posts How to split large record length file... DFSORT/ICETOOL 10
No new posts Error to read log with rexx CLIST & REXX 11
No new posts SFTP Issue - destination file record ... All Other Mainframe Topics 2
No new posts FINDREP - Only first record from give... DFSORT/ICETOOL 3
No new posts To find whether record count are true... DFSORT/ICETOOL 6
Search our Forums:

Back to Top