View previous topic :: View next topic
|
Author |
Message |
Ashish Mohan Sharma
New User
Joined: 30 Sep 2008 Posts: 22 Location: Pune
|
|
|
|
Code :
ADDRESS ISPEXEC
"FTOPEN"
if(rc) then say "...."
Error:
IRX0034I Error running AUTOFALC, line 425: Logical value not 0 or 1
ISPD117 |
|
Back to top |
|
|
expat
Global Moderator
Joined: 14 Mar 2007 Posts: 8797 Location: Welsh Wales
|
|
|
|
The solution is self explanatory, the value stored in RC is NOT 0 and is NOT 1.
Easy eh ? |
|
Back to top |
|
|
Ashish Mohan Sharma
New User
Joined: 30 Sep 2008 Posts: 22 Location: Pune
|
|
|
|
But the problem is this that when executing
ADDRESS ISPEXEC
"FTOPEN"
It should give 0 or 1 as RC while it is giving 8.
Please help me now.
Thanks |
|
Back to top |
|
|
expat
Global Moderator
Joined: 14 Mar 2007 Posts: 8797 Location: Welsh Wales
|
|
|
|
Why should it give a 0 or 1. Where in the manual does it say that.
Look at the return codes issued by file tailoring in the manual and see why you get an 8 returned, rather than wishing for something that just ain't going to happen. |
|
Back to top |
|
|
anjali_tcs
New User
Joined: 09 Jun 2008 Posts: 10 Location: GGN
|
|
|
|
The following return codes are possible:
0 Normal completion.
8 File tailoring already in progress.
16 Skeleton library or output file not allocated.
12 Output file in use; ENQ failed.
20 Severe error.
Thanks,
AB. |
|
Back to top |
|
|
anjali_tcs
New User
Joined: 09 Jun 2008 Posts: 10 Location: GGN
|
|
|
|
Do you have multiple FTOPEN in your program? |
|
Back to top |
|
|
|