Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

Read a record using read next command in KSDS

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

New User


Joined: 09 Mar 2007
Posts: 17
Location: kerala

PostPosted: Sun Jun 17, 2007 12:14 pm    Post subject: Read a record using read next command in KSDS
Reply with quote

I have set of rcords in ksds file.

Prabs
vekili
chamb
12347
36749

then I going to first intialize the key-varible with zeros then issueing a start command with key-variable. then I am going to read a record using read next command .....
could any one tell the pointer position and my case which record will be read by the program...
Back to top
View user's profile Send private message

William Thompson

Global Moderator


Joined: 18 Nov 2006
Posts: 3158
Location: Tucson AZ

PostPosted: Sun Jun 17, 2007 4:29 pm    Post subject:
Reply with quote

If those are the keys of your records, the actual sequence would be
chamb
vekil
Prabs
12347
36749
Since lower case sorts before upper case and numerics sort after alphas.
If you start the browse at 00000, the read next will fetch 12347.
Back to top
View user's profile Send private message
prabe

New User


Joined: 09 Mar 2007
Posts: 17
Location: kerala

PostPosted: Sun Jun 17, 2007 11:14 pm    Post subject: Re: Read a record using read next command in KSDS
Reply with quote

could you explain little more about start command and read next command in terms of pointer positioning
Back to top
View user's profile Send private message
William Thompson

Global Moderator


Joined: 18 Nov 2006
Posts: 3158
Location: Tucson AZ

PostPosted: Sun Jun 17, 2007 11:46 pm    Post subject:
Reply with quote

Why don't you read a little about it in the File position indicator section in the Enterprise COBOL Programming Guide?
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 Count the length of the record & ... sreekusr DFSORT/ICETOOL 4 Thu Mar 23, 2017 7:52 pm
No new posts IMS DB-How to update a record (a sing... Nic Clouston IMS DB/DC 9 Thu Mar 09, 2017 4:38 pm
No new posts TSO or command line utility to genera... kishpra JCL & VSAM 3 Thu Mar 09, 2017 1:11 am
No new posts Customizing the ISPF HILITE Command Pedro TSO/ISPF 3 Fri Mar 03, 2017 11:49 pm
No new posts To Merge mutliple records into a sing... anandgbe DFSORT/ICETOOL 6 Wed Feb 22, 2017 8:49 am


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us