ABEND 806-04

This forum provides the support of Dezhi Mainframe systems. Please post your questions about logon, usage of our mainframe environment.

Moderators: sysprog, prino, sfan, steve-myers, Tim001

ABEND 806-04

Postby CPANTX » Mon 29 Jun 2009, 17:54

When I run a compiled cobol program through run JCL, it gives abend 806-04, load module not found. When I went deeper, I got my problem which is described at http://www-01.ibm.com/support/docview.w ... sg1OA17662. How can I get around this problem?

Also, I have compiled the program by ISPF option 5.2 as compile JCL needs steplib for compiler. Can you provide compile JCL for your system?

Thanks.
CPANTX
 
Posts: 13
Joined: Mon 29 Jun 2009, 17:43

Re: ABEND 806-04

Postby prino » Mon 29 Jun 2009, 20:48

Given that everyone has universal read access, don't you think it would be useful to tell us where to find the source, compile JCL and output for this program?
Robert AH Prins
robert.ah.prins @ the.17+Gb.Google thingy
Some programming here :mrgreen:
prino
 
Posts: 483
Joined: Sat 06 Jun 2009, 21:41
Location: Vilnius, Lithuania

Re: ABEND 806-04

Postby sysprog » Tue 30 Jun 2009, 01:42

Please post your jobname and jobid.
Regards,
sysprog
sysprog
 
Posts: 126
Joined: Wed 20 May 2009, 04:03

Re: ABEND 806-04

Postby CPANTX » Tue 30 Jun 2009, 14:59

My jobname and jobid are as follows:
CPANTXJ(JOB47096)
CPANTXJ(JOB47097)

I have program FSTPRG in CPANTX.COBOL.PRG.
Its load is in CPANTX.COBOL.OBJ by option 5.2 since I cannot compile it by CPANTX.JCL.JCL(COMPILE).

After compiling by ISPF(5.2), now I run it by CPANTX.JCL.JCL(RUN) and I get above error msg(806-04).
CPANTX
 
Posts: 13
Joined: Mon 29 Jun 2009, 17:43

Re: ABEND 806-04

Postby prino » Tue 30 Jun 2009, 15:51

CPANTX wrote:Its load is in CPANTX.COBOL.OBJ by option 5.2 since I cannot compile it by CPANTX.JCL.JCL(COMPILE).

SIASD!

You created an OBJECT module, you need to link this to get a load module! Compile procedures for Cobol are

Code: Select all
IGYWC
IGYWCG
IGYWCL
IGYWCLG
IGYWCPG
IGYWCPL
IGYWCPLG
IGYWPL
to be found in SYSFAN.PROCLIB

Next to that, a loadlib has a RECFM=U, an LRECL=0 and a BLKSIZE=27998 and should be a PDS or PDS-E.

Might I suggest you try reading some manuals first, z/OS is not like Windoze...
Robert AH Prins
robert.ah.prins @ the.17+Gb.Google thingy
Some programming here :mrgreen:
prino
 
Posts: 483
Joined: Sat 06 Jun 2009, 21:41
Location: Vilnius, Lithuania

Re: ABEND 806-04

Postby sysprog » Sat 04 Jul 2009, 03:01

Please following these two steps for compiling, linking, and running the COBOL program:

Step 1 : Run the member COMPILE, which compiles and Links for sample COBOL program HELLO:
Code: Select all
/***************************************************************
//** RUN COBOL COMPILE AND LINKEDIT STEPS,                      *
//** AFTER THIS JCL, YOU MAY RUN THE JCL MEMBER 'RUN' TO        *
//** RUN THIS PROGRAM HELLO.                                    *
//***************************************************************
//COMPLINK EXEC PROC=IGYWCL,
//         PGMLIB=SYSFAN.SAMPLE.COBOL.LOADLIB,
//         GOPGM=HELLO
//COBOL.SYSIN  DD DISP=SHR,DSN=SYSFAN.SAMPLE.COBOL.SOURCE(HELLO)


Step 2. Run the sample program HELLO.
The run the JCL member RUN to run the program HELLO, which is generated by previous steps.
Code: Select all
//***************************************************************
//* RUN THE SAMPLE COBOL PROGRAM.
//***************************************************************
//RUN      EXEC PGM=HELLO
//STEPLIB  DD  DISP=SHR,DSN=SYSFAN.SAMPLE.COBOL.LOADLIB
//SYSOUT   DD SYSOUT=*


The SYSOUT DD should show:
Code: Select all
HELLO, WORLD!


The sample jobs will be provided in SYSFAN.SAMPLE.**
Regards,
sysprog
sysprog
 
Posts: 126
Joined: Wed 20 May 2009, 04:03

Re: ABEND 806-04

Postby CPANTX » Tue 07 Jul 2009, 17:01

Problem solved. Now, I am able to compile, linkedit, and run the program.

Thanks prino.
Thanks sysprog.
CPANTX
 
Posts: 13
Joined: Mon 29 Jun 2009, 17:43

Re: ABEND 806-04

Postby CPANTX » Tue 07 Jul 2009, 17:05

I would still like to know why program compiled by option 5.2 was giving 806-04. Is it because what is described in here:
http://www-01.ibm.com/support/docview.w ... sg1OA17662
CPANTX
 
Posts: 13
Joined: Mon 29 Jun 2009, 17:43

Re: ABEND 806-04

Postby prino » Tue 07 Jul 2009, 19:15

No, it is because it was not linked! If you use option 5.2, you have to follow it with option 5.7!
Robert AH Prins
robert.ah.prins @ the.17+Gb.Google thingy
Some programming here :mrgreen:
prino
 
Posts: 483
Joined: Sat 06 Jun 2009, 21:41
Location: Vilnius, Lithuania


Return to Dezhi systems: Mainframe

Who is online

Users browsing this forum: No registered users and 8 guests

cron