IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

Reg error code "IEW4007", while running a cobol pr


IBM Mainframe Forums -> JCL & VSAM
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
ursvmg

New User


Joined: 24 May 2007
Posts: 52
Location: Chennai

PostPosted: Wed Aug 08, 2007 1:30 pm
Reply with quote

Hi,

I compiled and linked the following cobol code in my JCL. It ran fine.

Code:
       IDENTIFICATION DIVISION. 
        PROGRAM-ID. PGM001.     
       DATA DIVISION.           
       WORKING-STORAGE SECTION. 
       01 A PIC 9(09).           
       PROCEDURE DIVISION.       
       0001-MAIN.               
             MOVE 5 TO A.       
             DISPLAY A.         
             STOP RUN.           


The following is my compile and linking JCL:

Code:
//STEP01  EXEC PGM=IGYCRCTL,                 
//             PARM='OBJECT,BUFSIZE(4096)'   
//STEPLIB  DD DSN=SYS1.PROCLIB,             
//             DISP=SHR                     
//         DD DSN=SYS1.COB2COMP,             
//             DISP=SHR                     
//SYSUT1   DD UNIT=SYSDA,                   
//             SPACE=(CYL,(1,1))             
//SYSUT2   DD UNIT=SYSDA,                   
//             SPACE=(CYL,(1,1))             
//SYSUT3   DD UNIT=SYSDA,                   
//             SPACE=(CYL,(1,1))             
//SYSUT4   DD UNIT=SYSDA,                   
//             SPACE=(CYL,(1,1))             
//SYSUT5   DD UNIT=SYSDA,                   
//             SPACE=(CYL,(1,1))             
//SYSUT6   DD UNIT=SYSDA,                   
//             SPACE=(CYL,(1,1))             
//SYSUT7   DD UNIT=SYSDA,                   
//             SPACE=(CYL,(1,1))             
//SYSPRINT DD SYSOUT=*                       
//SYSLIN   DD DSN=X.COBOL.LOADLIB(PGM001),
//             DISP=SHR                     
//SYSIN    DD DSN=X.COBOL.COBLIB(PGM001),
//             DISP=SHR   



But when i try to run the same in the JCL, it is giving the following error.

IEW4007I FIND FOR MODULE PGM001 FAILED BECAUSE DIRECTORY ENTRY IS NOT VALID FOR A LOAD MODULE.

CSV003I REQUESTED MODULE PGM001 NOT FOUND
CSV028I ABEND806-04 JOBNAME=ADDC STEPNAME=STEP001

Here is my JCL :

Code:
//ADDC JOB (00008),'TEST-RUN',   
//             CLASS=U,MSGCLASS=X   
//*                                 
//JOBLIB  DD DSN=X.COBOL.LOADLIB,
//             DISP=SHR             
//STEP001 EXEC PGM=PGM001           
//SYSOUT DD SYSOUT=*                 
//SYSPRINT DD SYSOUT=*               
//SYSIN DD DUMMY           
//* 


Please help me in this regard.
Back to top
View user's profile Send private message
agkshirsagar

Active Member


Joined: 27 Feb 2007
Posts: 691
Location: Earth

PostPosted: Wed Aug 08, 2007 1:56 pm
Reply with quote

I can not see any link step in your "Compile Link JCL" icon_confused.gif
Back to top
View user's profile Send private message
ursvmg

New User


Joined: 24 May 2007
Posts: 52
Location: Chennai

PostPosted: Wed Aug 08, 2007 2:23 pm
Reply with quote

Oh.... Can you pls give me some example?
Back to top
View user's profile Send private message
shankar.v

Active User


Joined: 25 Jun 2007
Posts: 196
Location: Bangalore

PostPosted: Wed Aug 08, 2007 2:39 pm
Reply with quote

Refer the below link:

http://www.ibmmainframes.com/jcls.php
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> JCL & VSAM

 


Similar Topics
Topic Forum Replies
No new posts Replace each space in cobol string wi... COBOL Programming 3
No new posts Running REXX through JOB CLIST & REXX 13
No new posts Error to read log with rexx CLIST & REXX 11
No new posts COBOL -Linkage Section-Case Sensitive COBOL Programming 1
No new posts Error when install DB2 DB2 2
Search our Forums:

Back to Top