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

Read a record using read next command in KSDS


IBM Mainframe Forums -> COBOL Programming
Post new topic   Reply to topic
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
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: 3156
Location: Tucson AZ

PostPosted: Sun Jun 17, 2007 4:29 pm
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
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: 3156
Location: Tucson AZ

PostPosted: Sun Jun 17, 2007 11:46 pm
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 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 RACF - Rebuild SETROPTS command which... All Other Mainframe Topics 3
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
Search our Forums:

Back to Top