Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Profile Log in to check your private messages Log in
 
Reg error code "IEW4007", while running a cobol pr

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
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    Post subject: Reg error code "IEW4007", while running a cobol pr
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: 686
Location: Earth

PostPosted: Wed Aug 08, 2007 1:56 pm    Post subject:
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    Post subject: Re: Reg error code "IEW4007", while running a cobo
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    Post subject:
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    IBMMAINFRAMES.com Support Forums -> JCL & VSAM All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts FUSE - IBM MQ - CICS integration error Kevin Vaz CICS 1 Mon Sep 18, 2017 4:31 pm
No new posts Reply MQ open error Vignesh Sid COBOL Programming 5 Thu Sep 07, 2017 6:02 pm
No new posts Error in SQL-PLIST3 'Above value tru... rikdeb DB2 4 Wed Sep 06, 2017 1:34 pm
This topic is locked: you cannot edit posts or make replies. Extract all "IF" Statements... Adarsh Damodaran CLIST & REXX 1 Wed Sep 06, 2017 9:28 am
No new posts WER268A OUTREC STATEMENT : SYNTAX E... frozenblood87 SYNCSORT 12 Sat Aug 26, 2017 9:45 pm

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us