Page 1 of 3
Out of Cobol programme
Posted:
Tue Jul 28, 2009 6:14 pm
by hayt.main
Hi everyone, I have some issue in seeing out of my simple program. I have compiled and execute my cobol program, which simply displays 'Hi; successfully with MAXCC=0. After submitting Execution jcl, i dont see any output. When i go to SDSF Status, it displays only
JESMSGLG JES2
JESJCL JES2
JESYSMSG JES2 I have gone through these three.... Where do i see my output.
Re: Out of Cobol programme
Posted:
Tue Jul 28, 2009 6:18 pm
by hayt.main
Please i need someone to help with this.... Pleaseee.....
Re: Out of Cobol programme
Posted:
Tue Jul 28, 2009 8:26 pm
by swd
There could be a few problems here, can you please post your JCL for us to look at.
It could be a 'PREFIX' or OWNER problem. In SDSF type OWNER * then look at the output Q you think i should be in (Held output or other output class etc.) Have you got the PREFIX command set to something? Try also typing PREFIX and enter, or try setting the PREFIX to the jobname if it is different to your userid.
Re: Out of Cobol programme
Posted:
Tue Jul 28, 2009 8:36 pm
by swd
I misunderstood, you mean you can see the JCL but you can't see the 'Hi' output. How did you output the Hi, with a DISPLAY 'Hi' statement perhaps? Did you have a SYSPRINT DD SYSOUT=* in your JCL?
Please post details of JCL and how you are outputting the Hi.
Re: Out of Cobol programme
Posted:
Tue Jul 28, 2009 8:39 pm
by swd
...or a //SYSOUT DD SYSOUT=* in your JCL?
Re: Out of Cobol programme
Posted:
Tue Jul 28, 2009 10:32 pm
by dick scherrer
Hello,
Do not post duplicates. . .
The other has been deleted. . .
Suggest youpost all of the sysout datasets from the execution run. When posting these, use copy/paste and the "Code" tag - do not post screenshots.
Re: Out of Cobol programme
Posted:
Wed Jul 29, 2009 7:18 pm
by hayt.main
hI,
Here is my compile jcl
//HAYT01J JOB (12345678),HAYT01,MSGCLASS=H,
// MSGLEVEL=(1,1),CLASS=A,NOTIFY=&SYSUID
//STEP1 EXEC PROC=IGYWCL
//SYSOUT DD SYSOUT=*
//SYSPRINT DD SYSOUT=*
//COBOL.SYSIN DD DSN=HAYT01.JCL.SOURCE(ADD),DISP=SHR
//LKED.SYSLMOD DD DSN=HAYT01.COBOL.LOAD(ADD),DISP=SHR
//SYSOUT DD SYSOUT=*
//SYSPRINT DD SYSOUT=*
//
EXEC-JCL:
//HAYT01J JOB (12345678),HAYT01,MSGCLASS=H,
// MSGLEVEL=(1,1),CLASS=A,NOTIFY=&SYSUID
//STEP1 EXEC PGM=ADD
//STEPLIB DD DSN=HAYT01.COBOL.LOAD,DISP=SHR
//SYSOUT DD SYSOUT=*
//SYSPRINT DD SYSOUT=*
//
Re: Out of Cobol programme
Posted:
Wed Jul 29, 2009 7:44 pm
by hayt.main
In the SDSF==> ST(Job Status)
ST Status of jobs
SDSF STATUS DISPLAY ALL CLASSES
COMMAND INPUT ===>
then
? HAYT01 TSU55925 HAYT01 15 EXECUTION SYS1 SYS1
then
NP DDNAME StepName ProcStep DSID Owner C Dest Rec-Cnt Page
JESMSGLG JES2 2 HAYT01 K 2
JESJCL JES2 3 HAYT01 K 25
JESYSMSG JES2 4 HAYT01 K 2
After entering i do not see any output in any of jesmsglg or jesjcl or jessmsg.... Where i am supposed to get my output.
Also my program isEDIT HAYT01.JCL.SOURCE(ADD) - 01.15 Columns 00001 00072
Command ===> Scroll ===> CSR
****** ***************************** Top of Data ******************************
000001 IDENTIFICATION DIVISION.
000002 PROGRAM-ID. ADD1.
000003 ENVIRONMENT DIVISION.
000004 DATA DIVISION.
000005 PROCEDURE DIVISION.
000006 DISPLAY "hi how r u cobol".
000007 STOP RUN.
****** **************************** Bottom of Data ****************************
Re: Out of Cobol programme
Posted:
Wed Jul 29, 2009 8:36 pm
by swd
Looks like you are selecting your own TSO userid TSU55925. You need to look on the output Q class H as this is where your output goes.
I suggest you do PRE HAYT01* then do the ST. Do you see your output now ???? It'll be jobname HAYT01J
Cheers
Steve
Re: Out of Cobol programme
Posted:
Thu Jul 30, 2009 6:27 am
by hayt.main
Hi Steve, I've check in output Q, i do not see my ouput class H in the output Q, its like this.
SDSF OUTPUT ALL CLASSES ALL FORMS LINES 269,953 LINE 18-34 (292)
COMMAND INPUT ===> SCROLL ===> PAGE
NP JOBNAME JobID Owner Prty C Forms Dest Tot-Rec
Anywhere here i dont see my jobname, or owner or C(Class=H)....
Still i dont know, where to check the output.. and sorry, i did not understand
PREFIX HAYT01* and then ST
do u mean, go to 3.4 then goto SDSF then ST?... Anyway please need your help.