View previous topic :: View next topic
|
Author |
Message |
sakthisiga Warnings : 1 New User
Joined: 11 Jun 2009 Posts: 60 Location: Chennai
|
|
|
|
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 |
|
|
enrico-sorichetti
Superior Member
Joined: 14 Mar 2007 Posts: 10873 Location: italy
|
|
|
|
click on the programs link at the top of the page |
|
Back to top |
|
|
expat
Global Moderator
Joined: 14 Mar 2007 Posts: 8797 Location: Welsh Wales
|
|
|
|
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 |
|
|
sakthisiga Warnings : 1 New User
Joined: 11 Jun 2009 Posts: 60 Location: Chennai
|
|
|
|
I am using COBOL programming language. |
|
Back to top |
|
|
naveenmundhra
New User
Joined: 24 Feb 2008 Posts: 3 Location: hyderabad, India
|
|
|
|
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 |
|
|
|