Page 1 of 1

CICS-COBOL COMPILE PROBLEM

PostPosted: Sat Aug 21, 2010 4:00 pm
by CPANTX
I am compiling cics-cobol program and getting this error:

06.16.22 JOB11881 $HASP165 CPANTXJ ENDED AT N1 MAXCC=4 CN(INTERNAL).

Now, doing TSO SDSF ST, I found the following:
JESMSGLG JES2                 2 CPANTX   H LOCAL 
 JESJCL   JES2                 3 CPANTX   H LOCAL 
 JESYSMSG JES2                 4 CPANTX   H LOCAL 
 SYSPRINT COBS1    TRN       102 CPANTX   H LOCAL 
 SYSPRINT COBS1    COB       103 CPANTX   H LOCAL 
 SYSPRINT COBS1    COPYLINK  104 CPANTX   H LOCAL 
 SYSPRINT COBS1    LKED      105 CPANTX   H LOCAL

Now, I have 2 questions:
1. Where to look for error msgs. I look at each of the above statements.
2. Looking in SYSPRINT COBS1 TRN 102 CPANTX H LOCAL , I found the following:
DFH7010I W INVALID OPTION STRING:- 'COBOL' IGNORED.

How to get around this problem.

Thanks.

Re: CICS-COBOL COMPILE PROBLEM

PostPosted: Sat Aug 21, 2010 7:55 pm
by Robert Sample
Take the COBOL parameter out of the translate step JCL PARM= would be the easiest way to fix the problem. Many times the translator output is not sent to a spool since it is the input for the compiler. Which is good until you get a translator error and need to see what it is.

Re: CICS-COBOL COMPILE PROBLEM

PostPosted: Mon Aug 23, 2010 9:13 pm
by DieZ
Compilation ended with MAXCC=4 ? Isn't that safe enough ? After all, the steps for link-editing has been executed.

Re: CICS-COBOL COMPILE PROBLEM

PostPosted: Mon Aug 23, 2010 10:43 pm
by Robert Sample
A condition code of 4 means one (or more) step(s) -- you must look at your job to determine which -- generated what are typically called warning messages. While the program may work precisely as expected, it also may not, depending upon what the warning is for. It is not a good thing to assume that a condition code of 4 means everything is good and just run the program. For example, COBOL generates a warning message for data truncation -- so if this program is calculating YOUR salary, is it okay to leave off a leading digit or two? Ignoring the warning message may cause that to happen.

Re: CICS-COBOL COMPILE PROBLEM

PostPosted: Tue Aug 24, 2010 10:07 pm
by DieZ
If it was to calculate my salary, I would ensure that, the link-edit step runs with COND=(0,LT). Don't want to assume anything...? Then, write proper COND in job steps !

Re: CICS-COBOL COMPILE PROBLEM

PostPosted: Tue Aug 24, 2010 10:13 pm
by Robert Sample
Compilation ended with MAXCC=4 ? Isn't that safe enough ? After all, the steps for link-editing has been executed.