Compile error (Cobol using copy book)

This is a Mainframe COBOL forum - you can post your queries on Mainframe COBOL, VS COBOL II, COBOL/370 , Enterprise COBOL

Moderators: dbzTHEdinosauer, Moderator Group

Post Reply
mgrando
Member
Posts: 1
Joined: Wed Jul 22, 2009 5:08 pm

Compile error (Cobol using copy book)

Post by mgrando » Mon Aug 03, 2009 11:49 pm

Someone can help me? The JCL doesnt find the copybooks in CICSVSAM.FONTES.CPY
What is worng??
JCL

Code: Select all

//COMPCICS     JOB (,PN),IBMUSER,MSGCLASS=X,                       
//*=============================================================== 
//* COMPILACAO DE PROGRAMA COBOL CICS  - AINDA EM TESTE            
//*=============================================================== 
//             MSGLEVEL=(1,1),CLASS=A,NOTIFY=&SYSUID               
//*                                                                
//STEP01       EXEC PROC=IGYWCL                                    
//SYSLIB       DD DSN=CICSVSAM.FONTES.CPY,DISP=SHR                 
//COBOL.SYSIN  DD DSN=CICSVSAM.FONTES.LIB(CICSMNU),DISP=SHR        
//COBOL.SYSLIB DD DSN=CICSVSAM.FONTES.CPY,DISP=SHR                 
//LKED.SYSLMOD DD DSN=CICSVSAM.FONTES.LOAD(CICSMNU),DISP=SHR       
// DD DSN=CICSTS23.CICS.SDFHCOB,DISP=SHR                           
//LKED.SYSIN DD *                                                  
NAME CICSMNU(R)                                                    
//SYSOUT       DD SYSOUT=*                                         
//SYSPRINT     DD SYSOUT=*                                         
/*                                                                 
ERROR

Code: Select all

COPY DFHAID.                                                  

IGYDS0010-S A "COPY" statement was found but the "LIB" compiler option was not in effect.  Scanning was resumed at the item following the next period.

User avatar
Natarajan
Moderator
Posts: 537
Joined: Fri Oct 10, 2008 12:57 pm
Location: chennai
Contact:

COBOL COMPILE JCL

Post by Natarajan » Tue Aug 04, 2009 11:05 am

In our shop, we are using IGYCRCTL.
We dont use COBOL.SYSLIB.. as DD name.
we use only SYSLIB as DD name.

Try using PARM parameter in cobol compile jcl.

Code: Select all

//COB    EXEC PGM=IGYWCL,
//           PARM=(LIB)
Natarajan
Chennai

Anuj Dhawan
Moderator
Posts: 1625
Joined: Sat Aug 09, 2008 9:02 am
Location: Mumbai, India

Post by Anuj Dhawan » Mon Aug 10, 2009 6:10 pm

This is from the Manuals, emphasis added by me:
Message Format: IGYPP0010-S A "COPY" STATEMENT WAS FOUND BUT THE "LIB"
COMPILER OPTION WAS NOT SPECIFIED.
SCANNING WAS RESUMED AT THE ITEM FOLLOWING
THE NEXT PERIOD.

Description: COPY statements are honored by the compiler only if the
LIB compiler option is specified. In this case, a COPY
statement was found on the associated source line but the
LIB compiler option was not specified. The COPY statement
(and everything between the COPY statement and the next
appearance of a period) was ignored by the compiler.

User Action: If COPY statements are to be processed, specify the LIB
compiler option and recompile. IF COPY statements are not
to be processed, remove the indicated COPY statement.
Regards,
Anuj

Post Reply

FREE TUTORIALS

Tutorials
Free tutorials from mainframegurukul
  • JCL Tutorial
    Covers all important JCL concepts.
  • Cobol Tutorial
    This tutorials covers all Cobol Topics from STRING to COMP-3.
  • DB2 Tutorial
    DB2 Tutorial focuses on DB2 COBOL Programming.
  • SORT Tutorial
    This Tutorial covers all important aspects of DFSORT with examples
  • CICS Tutorial
    This CICS tutorial covers CICS concepts and CICS Basics, CICS COBOL Programming.
Interview
Mainframe Interview questions



Other References
Mainframe Tools and others