Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups 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 Job failing with USER = 4093 REASON C... Pradeepa S ABENDS & Debugging 1 Wed May 17, 2017 3:35 pm
This topic is locked: you cannot edit posts or make replies. Cobol GUI (like Editor) Kala Mainframe COBOL Programming 14 Wed May 10, 2017 12:30 pm
No new posts IMS T-Pipe queue counts in a COBOL Pr... Siva NKK Kothamasu IMS DB/DC 0 Tue May 09, 2017 6:31 pm
No new posts Getting error while opening a variabl... apandey1 COBOL Programming 5 Fri May 05, 2017 12:22 pm
No new posts READ A PACKED "NEGATIVE" FI... jdesouza CA Products 3 Tue May 02, 2017 11:43 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us