View previous topic :: View next topic
|
Author |
Message |
anandinmainframe
Active User
Joined: 31 May 2007 Posts: 171 Location: India
|
|
|
|
Hi,
Can anyone tell me the Syntax for I-O read.
i am getting the file status 41, while i am reading in I/O MODE.
how to append a O/P File(Not in JCL) Through file handling. |
|
Back to top |
|
|
Robert Sample
Global Moderator
Joined: 06 Jun 2008 Posts: 8697 Location: Dubuque, Iowa, USA
|
|
|
|
Did you look up the file status 41? This can be found in the sticky at the start of the COBOL forum. Hint: the problem is not a read.
I-O read syntax is no different than INPUT read syntax; why would you think it would be different?
And what does this mean?
Quote: |
how to append a O/P File(Not in JCL) Through file handling.
|
If you're talking about dynamically allocating a file to append, the manual is the Language Reference and the link is at the top of the page. |
|
Back to top |
|
|
CICS Guy
Senior Member
Joined: 18 Jul 2007 Posts: 2146 Location: At my coffee table
|
|
Back to top |
|
|
Anuj Dhawan
Superior Member
Joined: 22 Apr 2006 Posts: 6250 Location: Mumbai, India
|
|
|
|
Hi,
You might like to check these similar links as well..
www.ibmmainframes.com/viewtopic.php?t=34717&highlight=open
www.ibmmainframes.com/viewtopic.php?t=34651&highlight=
Status Code 41 usually comes in when there is a flaw in your logic - it's a logical error, as suggested, your program logic tries to OPEN the same file again. Try to put a DISPLAY before the statement where you issue an OPEN & check in the SYSOUT how many times your program tries to execute OPEN statement..if two continuous messages are displayed in SYSOUT (& no CLOSE is issued between them)- check your logical flow again. |
|
Back to top |
|
|
|