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
 

 

Indexed File record not found

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

New User


Joined: 10 Dec 2007
Posts: 13
Location: Hyd

PostPosted: Fri Jan 15, 2010 8:12 am    Post subject: Indexed File record not found
Reply with quote

I had a file, Organization mode is INDEXD and access mode is DYNAMIC. Moving the values to the record key and simply reading the file (Not with START) as below.

READ INPUT-FILE INTO INPUT-RECORD.

If the record not found what would be there in INPUT-RECORD and record-key.

I guess it will get intialize. Please correct me if wrong.

Thanks.
Back to top
View user's profile Send private message

dbzTHEdinosauer

Global Moderator


Joined: 20 Oct 2006
Posts: 6966
Location: porcelain throne

PostPosted: Fri Jan 15, 2010 8:45 am    Post subject:
Reply with quote

Quote:
I had a file,

too bad you don't have it anymore,
you could have run a quick test.

only thing I can suggest is read the manuals (top of page - MANUALS button) for cobol application programmers manual which will detail how the I/O commands function.

Possibly will not answer your question directly, that would require mainframe usage, which I am not going to expend to verify your guess.

I don't know the answer to your question because I would not use your syntax and expect the I/O to function as I wanted.
Back to top
View user's profile Send private message
Nsuma

New User


Joined: 10 Dec 2007
Posts: 13
Location: Hyd

PostPosted: Fri Jan 15, 2010 8:54 am    Post subject:
Reply with quote

See dbzTHEdinosauer,
It is not too bad, i want confirmation which i am guessing, i have already tried in my system (since i am working on UNIX cobol). I want to know what will happen in mainframes. That it. if you dont have time you no need to give such reply.

READ INPUT-FILE INTO INPUT-RECORD. ----This is basic syntax in mainframes cobol.

But thanks for letting one thing. it will depend on the I/O function also.

Thanks
Back to top
View user's profile Send private message
Robert Sample

Global Moderator


Joined: 06 Jun 2008
Posts: 7935
Location: Bellevue, IA

PostPosted: Fri Jan 15, 2010 8:54 am    Post subject:
Reply with quote

Quote:
I guess it will get intialize. Please correct me if wrong.
Why guess when the manual is available from this web page in just a few clicks of the mouse? You can then read section 6.2.28 of the COBOL Language Reference manual and know -- not guess -- exactly what happens in this case, since the manual explicitly tells you.

Hint: you are wrong because initialization is not involved.
Back to top
View user's profile Send private message
Nsuma

New User


Joined: 10 Dec 2007
Posts: 13
Location: Hyd

PostPosted: Fri Jan 15, 2010 8:56 am    Post subject:
Reply with quote

Thanks Robert Sample...i will do that.
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 SORTJOIN - Copy Matched and Unmatched... Steve Ironmonger DFSORT/ICETOOL 5 Tue Jan 17, 2017 4:26 pm
No new posts Copy RECFM =VB TO FB file with RECL =... sahil41352 DFSORT/ICETOOL 3 Wed Dec 28, 2016 11:29 pm
No new posts Add PD field from 2nd file to PD in 1st Sushant Garje DFSORT/ICETOOL 6 Thu Dec 01, 2016 4:32 pm
No new posts File Aid to File Manager conversion murali3955 IBM Tools 4 Thu Nov 24, 2016 3:41 pm
No new posts How to convert the VBM file to VB or... Sulabh Agrawal JCL & VSAM 4 Fri Nov 18, 2016 1:04 pm


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