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

Hw to read a KSDS file sequentailly?


IBM Mainframe Forums -> COBOL Programming
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
dates

New User


Joined: 11 Mar 2008
Posts: 9
Location: LA,USA

PostPosted: Wed Jan 28, 2009 4:30 pm
Reply with quote

I have KSDS file which has a key of length 20 and in the COBOL program i will get the input of length 12 of the key.
Now i have to read the KSDS file with the partial key of 12 and copy the rest of key to another KSDS file.

how can i do this?
Back to top
View user's profile Send private message
Robert Sample

Global Moderator


Joined: 06 Jun 2008
Posts: 8696
Location: Dubuque, Iowa, USA

PostPosted: Wed Jan 28, 2009 6:35 pm
Reply with quote

Shouldn't this be in COBOL, not SMS & VSAM?

Use ACCESS DYNAMIC, then START KEY GE and then READ NEXT -- all of which is explained quite nicely in the COBOL Language Reference manual (link at the top of the page).
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 FTP VB File from Mainframe retaining ... JCL & VSAM 8
No new posts Extract the file name from another fi... DFSORT/ICETOOL 6
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 Extracting Variable decimal numbers f... DFSORT/ICETOOL 17
Search our Forums:

Back to Top