×
INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!
  • Students Click Here

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Jobs

abend trying to compile cobol w/ JCL

abend trying to compile cobol w/ JCL

abend trying to compile cobol w/ JCL

(OP)
Hey all,

I am very new to cobol and JCL. So please ignore some of my horrible coding techniques etc! But i am trying to compile a program that i KNOW works (i had previously compiled it and executed it using the mainframes procedures etc). But now we have to create our own JCL to make it work! Ouch! I have come across the following error:

abend=s0000 u4038 reason=000000000 936

I am getting a file was OPENED or CLOSED incorrectly error aswell. But for this part of the assignment - all i want to be doing is being able to compile the thing within the JCL - NOT executing it! Hope you guys can help me out!

Thank you in advance!

RE: abend trying to compile cobol w/ JCL

Hi CCFC,

You haven't provided enough info about the exec of the JCL and the Abend.  If you can, copy and paste the listing produced at executiona and the info surrounding the abend.  At this point ew don't need the dump, just the msgs and any msg #s, for ex., "IEFxxxnnn: ERROR OPENING FILE xxxxx", etc.

Thanx and  

Regards, Jack.

"A problem well stated is a problem half solved" -- Charles F. Kettering
 

RE: abend trying to compile cobol w/ JCL

   
   Check your record lengths.  If they do not match between the JCL and your source code, you'll get the file OPENED or CLOSED incorrectly error.

Randy

RE: abend trying to compile cobol w/ JCL

CCFC

you say you only want to compile the program at this point but your JCL looks like it is executing a "load and go" linker in the 2nd step.

CODE

STEP2 EXEC PGM=HEWLDRGO,...

You might try asking around for JCL that executes PGM=IEWL, which is just the linker.  Or try removing this "step2" and only executing the IGYCRCTL (compiler) step only.

But regardless, you should be getting a compile listing spooling to SYSPRINT.

Are you getting any output at all?

Code what you mean,
and mean what you code!
But by all means post your code!

Razalas

RE: abend trying to compile cobol w/ JCL

Possibly i have missed something, but these:
           Select Input-File Assign to PIZZERIA.
           Select Print-File Assign to PRINTER.
have no DD statements in the attached JCL.

I suspect HEWLDRGO both links the code and executes it, so the DDs for the files used in the code need to be specified.

 

RE: abend trying to compile cobol w/ JCL

Hello gyus! I'm new in Cobol Programming and I'm having some troubles with my Batch report. The message I receive when I try to submmit it is: "JCL Error".

I tryed everything but it doesn't work.
I had received these messages too:  
 "5 IEFC621I EXPECTED CONTINUATION NOT RECEIVED                           
 6 IEFC662I INVALID LABEL                                                
 6 IEFC605I UNIDENTIFIED OPERATION FIELD                                 
 7 IEFC640I EXCESSIVE NUMBER OF POSITIONAL PARAMETERS ON THE EXEC STATEMENT"

Please help me!

Thanks!

I really don't know what to do.

RE: abend trying to compile cobol w/ JCL

Hello gyus! I'm new in Cobol Programming and I'm having some troubles with my Batch report. The message I receive when I try to submmit it is: "JCL Error".

I tryed everything but it doesn't work.
I had received these messages too:  
 "5 IEFC621I EXPECTED CONTINUATION NOT RECEIVED                           
 6 IEFC662I INVALID LABEL                                                
 6 IEFC605I UNIDENTIFIED OPERATION FIELD                                 
 7 IEFC640I EXCESSIVE NUMBER OF POSITIONAL PARAMETERS ON THE EXEC STATEMENT"

I really don't know what to do.

Please help me!

Thanks!

RE: abend trying to compile cobol w/ JCL

  
   Go to the line number indicated.
   Example:  5 IEFC621I EXPECTED CONTINUATION NOT RECEIVED
   On line 5 of your code, do you have a comma at the end?
   This would indicate that the code is to be continued on the next line.
 

Randy

RE: abend trying to compile cobol w/ JCL

If you post the problem jcl, someone will be able to tell you what is wrong.

RE: abend trying to compile cobol w/ JCL

Alan18,
Please start your own thread. It will ensure that you get better answers to your problem.

ccfc,
Is your problem now resolved?

Regards,
Marc

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members! Already a Member? Login

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close