Page 1 of 1

Compiler option INVDATA is not working on COBOL6.3

PostPosted: Fri Apr 22, 2022 5:35 pm
by Misha786
Hello -
I was trying to use compiler option INVDATA while compiling my cobol program using COBOL 6.3 compiler
I referred IBM document(i.e https://www.ibm.com/docs/en/cobol-zos/6.3?topic=options-invdata ) and accordingly here is what I tried in vain. I might be missing something or not using it correctly. Please let me know if anyone knows how to use it successfully



DIT    TUCOMP63 (JOB07678) JCLEDIT                   Column
d ===>                                                  Scr
 //*                                                      
 //COBOL  EXEC PGM=IGYCRCTL,REGION=0M,                    
 // PARM='NUMPROC(NOPFD),INVDATA(FORCENUMCMP,NOCLEANSIGN)'
 //STEPLIB  DD  DSNAME=SYS1.ADCOB.V6R3M0.SIGYCOMP,DISP=SHR
 //*TEPLIB  DD  DSNAME=SYS1.ADCOB.LINKLIB,DISP=SHR        
 //         DD  DSNAME=SYS1.SCEERUN,DISP=SHR              
 //         DD  DSNAME=SYS1.SCEERUN2,DISP=SHR              
 //SYSIN    DD  DSN=TU.C11T.COB63.SRCE(TUZCTEST),DISP=SHR  
 //SYSLIB   DD  DSN=TU.C11P.MACLIB,DISP=SHR                
 //SYSPRINT DD  SYSOUT=*                                  
 //SYSLIN   DD  DSNAME=TU.C11T.COB63.LOADSET,UNIT=SYSALLDA,
 


Error logs

 ------------------------------------------------------------------------------
 SDSF OUTPUT DISPLAY TUCOMP63 JOB07678  DSID   103 LINE 0       COLUMNS 02- 81
 COMMAND INPUT ===>                                            SCROLL ===> CSR
********************************* TOP OF DATA *********************************
PP 5655-EC6 IBM Enterprise COBOL for z/OS  6.3.0 P201119                 Date 0
Invocation parameters:                                                        
 NUMPROC(NOPFD),INVDATA(FORCENUMCMP,NOCLEANSIGN)                              
                                                                               
        IGYOS4003-E   Invalid option "INVDATA(FORCENUMCMP,NOCLEAN..." was found
                                                                               
PROCESS(CBL) statements:                                                      
 CBL ARITH(EXTEND)                                                            
Options in effect:                                                            
 NOADATA                                                                      
 

Re: Compiler option INVDATA is not working on COBOL6.3

PostPosted: Fri Apr 22, 2022 7:15 pm
by Robert Sample
From the Enterprise COBOL for z/OS 6.3 Programming Guide manual:
If you're migrating from COBOL V4 or earlier versions and used NUMPROC(NOPFD) with COBOL
V4, use INVDATA(NOFORCENUMCMP,CLEANSIGN) (or simply INVDATA) and NUMPROC(NOPFD) with
COBOL V6.
Have you tried the manual recommendation of
NUMPROC(NOPFD),INVDATA(NOFORCENUMCMP,CLEANSIGN)
?

Re: Compiler option INVDATA is not working on COBOL6.3

PostPosted: Fri Apr 22, 2022 9:18 pm
by Misha786
Yes Robert tried that ( i.e. INVDATA(NOFORCENUMCMP,CLEANSIGN) ) too. But same error message.

 SDSF OUTPUT DISPLAY TUCOMP63 JOB16760  DSID   103 LINE 0       COLUMNS 02- 81
 COMMAND INPUT ===>                                            SCROLL ===> CSR
********************************* TOP OF DATA *********************************
PP 5655-EC6 IBM Enterprise COBOL for z/OS  6.3.0 P201119                 Date 0
Invocation parameters:                                                        
 NUMPROC(NOPFD),INVDATA(NOFORCENUMCMP,CLEANSIGN)                              
                                                                               
        IGYOS4003-E   Invalid option "INVDATA(NOFORCENUMCMP,CLEAN..." was found
                                                                               
PROCESS(CBL) statements:                                                      
 CBL ARITH(EXTEND)                                                            
 

Re: Compiler option INVDATA is not working on COBOL6.3

PostPosted: Fri Apr 22, 2022 9:21 pm
by Robert Sample
It sounds like its time to open a problem with IBM then.

Re: Compiler option INVDATA is not working on COBOL6.3

PostPosted: Mon Apr 25, 2022 4:35 pm
by Misha786
Hi Robert
I was thinking the same but before raising a tkt with IBM help, I tested the same in another LPAR and to my surprise it worked in that.
So, now I am a bit confused what should be done because it is working in on one LPAR and not in another. Both of these are PROD lpars used by client.
Might be a good idea to contact both ZOS support team and IBM cobol support team. Any suggestion is always welcome.