Out of Cobol programme



JES, JES2, JCL utilities, IDCAMS, Compile & Run JCLs, PROCs etc...

Out of Cobol programme

Postby hayt.main » Tue Jul 28, 2009 6:14 pm

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.
hayt.main
 
Posts: 17
Joined: Tue Jul 28, 2009 4:31 pm
Has thanked: 0 time
Been thanked: 0 time

Re: Out of Cobol programme

Postby hayt.main » Tue Jul 28, 2009 6:18 pm

Please i need someone to help with this.... Pleaseee.....
hayt.main
 
Posts: 17
Joined: Tue Jul 28, 2009 4:31 pm
Has thanked: 0 time
Been thanked: 0 time

Re: Out of Cobol programme

Postby swd » Tue Jul 28, 2009 8:26 pm

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.
User avatar
swd
 
Posts: 109
Joined: Wed Feb 18, 2009 9:18 pm
Location: UK
Has thanked: 0 time
Been thanked: 0 time

Re: Out of Cobol programme

Postby swd » Tue Jul 28, 2009 8:36 pm

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.
User avatar
swd
 
Posts: 109
Joined: Wed Feb 18, 2009 9:18 pm
Location: UK
Has thanked: 0 time
Been thanked: 0 time

Re: Out of Cobol programme

Postby swd » Tue Jul 28, 2009 8:39 pm

...or a //SYSOUT DD SYSOUT=* in your JCL?
User avatar
swd
 
Posts: 109
Joined: Wed Feb 18, 2009 9:18 pm
Location: UK
Has thanked: 0 time
Been thanked: 0 time

Re: Out of Cobol programme

Postby dick scherrer » Tue Jul 28, 2009 10:32 pm

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.
Hope this helps,
d.sch.
User avatar
dick scherrer
Global moderator
 
Posts: 6268
Joined: Sat Jun 09, 2007 8:58 am
Has thanked: 3 times
Been thanked: 93 times

Re: Out of Cobol programme

Postby hayt.main » Wed Jul 29, 2009 7:18 pm

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=*
//
hayt.main
 
Posts: 17
Joined: Tue Jul 28, 2009 4:31 pm
Has thanked: 0 time
Been thanked: 0 time

Re: Out of Cobol programme

Postby hayt.main » Wed Jul 29, 2009 7:44 pm

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 is

EDIT       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 ****************************
hayt.main
 
Posts: 17
Joined: Tue Jul 28, 2009 4:31 pm
Has thanked: 0 time
Been thanked: 0 time

Re: Out of Cobol programme

Postby swd » Wed Jul 29, 2009 8:36 pm

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
User avatar
swd
 
Posts: 109
Joined: Wed Feb 18, 2009 9:18 pm
Location: UK
Has thanked: 0 time
Been thanked: 0 time

Re: Out of Cobol programme

Postby hayt.main » Thu Jul 30, 2009 6:27 am

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.
hayt.main
 
Posts: 17
Joined: Tue Jul 28, 2009 4:31 pm
Has thanked: 0 time
Been thanked: 0 time

Next

Return to JCL

 


  • Related topics
    Replies
    Views
    Last post