Page 1 of 1

S0C1 abend while running a PLI-DB2 program

PostPosted: Fri Sep 25, 2009 11:29 am
by nandanrexx
Hi all,

I am facing the S0C1 problem while running a PLI-DB2 program.
one strange thing we noticed is ,when we gave a 'put skip list' in the program it runs fine and the return code would be zero.
We could not make out the reason for this
We have recently migrated from Non-LE to enterprise compiler...is there any issue with this(does this migration need any changes in the program like PLIXOPT).let me know if any further information is needed.
PLease help.

Re: S0C1 abend while running a PLI-DB2 program

PostPosted: Sun Oct 25, 2009 7:22 am
by smvj007
Hi Nanda,

You had posted the below problem on Sep 25'2009. Have you resolved this problem ?. If yes, could you let me know what was done to resolve this problem ?. We are currently converting a pl1 program to EPL1 and we are facing a S0C4 error. Like you had mentioned in your post, if we add a 'put skip' to the program, the program is running fine with no errors. If we remove the 'put skip', the program is abending with a S0C4 error. I know your error was a S0C1 error and not S0C4, but I would like to know what was the problem in your program and what you did to resolve it. Your information could be helpful to me in fixing the problem that I'm currently facing. Thanks!.

Re: S0C1 abend while running a PLI-DB2 program

PostPosted: Fri Dec 18, 2009 3:28 pm
by KuganRaja
I am not sure but this problem may be due to AMODE and RMODE.
can you let us know whether this program is calling any other PL1 program.
And i want to know just adding a 'PUT SKIP' is resolving the problem?

Re: S0C1 abend while running a PLI-DB2 program

PostPosted: Mon Jan 18, 2010 2:34 pm
by senthilkumar123
Hi All,
I registered to this forum hoping to post this question. Good to see that it has already been posted (with no resolution though :( )

We are getting S0C2/S0C4 error while running our jobs but it runs fine when we provide few put skips statements.

We noticed that the program is abending while executing a GOTO statement. ( Then we gave some put skips for debugging and the job ran fine).

(I shall post more details little later as i seem to have some problem with internet connectivity.

Please suggest

Re: S0C1 abend while running a PLI-DB2 program

PostPosted: Mon Jan 18, 2010 3:50 pm
by senthilkumar123
To add :

Even i supsected initially that this coulkd be due to AMODE/RMODE issue. But it seems to be giving same problem (I compiled all programs with RMODE(24) and later link-edited everything with AMODE(31)).

Thanks,
Senthil

Re: S0C1 abend while running a PLI-DB2 program

PostPosted: Fri May 21, 2010 9:37 am
by BWH3922
Hi,

Sounds like you may have an uninitialized variable/storage in one of your modules. I would check to make sure all your variables are properly initialized,

BWH