CPF0006 during SBMJOB (COOL 2E generated code)

15 pts.
Tags:
COBOL
COBOL/400
CPF0006
SBMJOB
Synon
Synon/Cool 2E
I have used SBMJOB in the COOL 2E SYNON code (Generating COBOL source). During runtime, the fucntion crashes with CPF0006 message when trying to submit the program through Y2CMEXC. Is it the error caused by the Y2BLSJR command through which the parameters for the SBMJOB is set? Parameter 1 MOVE P1XYZ TO WSSTR MOVE 'A' TO WSTYP MOVE 2 TO WSLEN MOVE 0 TO WSDEC CALL 'Y2BLSJR' USING W0RTN WSSTR WSTYP WSLEN WSDEC WSRQS END-CALL Parameter 2 MOVE P1ABC TO WSPAK MOVE WSPAK TO WSSTR MOVE 'B' TO WSTYP MOVE 4 TO WSLEN MOVE 0 TO WSDEC CALL 'Y2BLSJR' USING W0RTN WSSTR WSTYP WSLEN WSRQS END-CALL The parameters are defined as FLD in Cool 2E SYSNON code. Cool 2E version 1135 Please clarify my doubt
ASKED: February 10, 2009  5:11 AM
UPDATED: February 10, 2009  1:40 PM

Answer Wiki

Thanks. We'll let you know when a new response is added.

Hi,

First thing I notice is that you call the same program with different numbers of parameters. The second call doesn’t have the WSDEC as parameter. I suggest you start by checking whether this is OK.

Regards,

Martin Gilbert.

Discuss This Question: 2  Replies

 
There was an error processing your information. Please try again later.
Thanks. We'll let you know when a new response is added.
Send me notifications when members answer or reply to this question.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy
  • Gokulvirtual
    Actually i missed out WSDEC while typing this question... Typo... The above mentioned cobol code is generated while compiling the code on SYNON COOL 2E. The parameters given for SBMJOB in SYNON code is parsed as this during the compilation. I have read in some old thread of the same issue( year 1999) that , Y2BLSJR have issues for the last parameter if the SYNON program has passed the parameters as FLD during SBMJOB. But its a surprise for me whether it is still not fixed ? Please explain.. Thanks..
    15 pointsBadges:
    report
  • Gilly400
    Hi, Have you tried doing a CHGJOB to get maximum logging and checking what the joblog says :- CHGJOB LOG(4 00 *SECLVL) LOGCLPGM(*YES) Regards, Martin Gilbert.
    23,730 pointsBadges:
    report

Forgot Password

No problem! Submit your e-mail address below. We'll send you an e-mail containing your password.

Your password has been sent to:

To follow this tag...

There was an error processing your information. Please try again later.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Thanks! We'll email you when relevant content is added and updated.

Following