IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

My output is not displaying even after run?


IBM Mainframe Forums -> ABENDS & Debugging
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
pahi
Currently Banned

New User


Joined: 04 Dec 2008
Posts: 7
Location: bangalore

PostPosted: Tue Dec 23, 2008 9:02 am
Reply with quote

Hi,
Even after compiling and run without errors,my output is not displaying why?
Regards,
Pahi
Back to top
View user's profile Send private message
Arun Raj

Moderator


Joined: 17 Oct 2006
Posts: 2481
Location: @my desk

PostPosted: Tue Dec 23, 2008 9:17 am
Reply with quote

pahi,

Welcome to the forums.

Your statements gives no clue about your problem. If it's nowhere related to this topic, you can start a new topic in the appropriate forum with all the relevant info regarding your current problem.

While posting parts of your code or error messages, use the 'Code' tags here to preserve the alignment. After typing your message, you can 'Preview' to make sure your message looks as you intended and then click 'Submit'.

The better you explain your problem, the sooner you get help from here. Goodluck. icon_smile.gif
Back to top
View user's profile Send private message
dick scherrer

Moderator Emeritus


Joined: 23 Nov 2006
Posts: 19243
Location: Inside the Matrix

PostPosted: Tue Dec 23, 2008 9:57 am
Reply with quote

Hello and welcome to the forum,

Your topic has been split from the one replied to and made a new topic for your question. With the little that is known about the problem, i've placed this in the part of the forum for Abends and Debugging. It can be moved later if necessary.

More information is needed for us to be able to help you.

Please post your jcl and the informational messages from the execution. When posting jcl, code, or data, please use copy/paste and the "Code" tag. Then use Preview to see how your post will appear to the forum. When you are satisfied with how your post appears, Submit.
Back to top
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8796
Location: Welsh Wales

PostPosted: Tue Dec 23, 2008 12:50 pm
Reply with quote

pahi wrote:
Hi,
Even after compiling and run without errors,my output is not displaying why?
Regards,
Pahi

Perhaps the MSGCLASS is one that
a) Gets routed elsewher
b) Gets immediately deleted
Ask your peers as this may be site specific.
Back to top
View user's profile Send private message
Anuj Dhawan

Superior Member


Joined: 22 Apr 2006
Posts: 6248
Location: Mumbai, India

PostPosted: Tue Dec 23, 2008 3:14 pm
Reply with quote

Hi,
Quote:
my output is not displaying why
Where do you look for the output and where does JCL route it ?
Back to top
View user's profile Send private message
pahi
Currently Banned

New User


Joined: 04 Dec 2008
Posts: 7
Location: bangalore

PostPosted: Tue Dec 23, 2008 4:20 pm
Reply with quote

Code:
IDENTIFICATION DIVISION.                 
 PROGRAM-ID. TEST1.                       
 DATA DIVISION.                           
 WORKING-STORAGE SECTION.                 
 01     NUM1            PIC 9(5) VALUE 4.
 01     NUM2            PIC 9(5) VALUE 10.
 01     RES             PIC 9(6) VALUE 0.
 PROCEDURE DIVISION.                     
     ADD NUM1 TO NUM2 GIVING RES.         
     DISPLAY "RES" RES.                   
     STOP RUN.                 


Code:
 //RUN     EXEC PGM=TEST1                 
//STEPLIB DD DSN=sun004.XN.LOAD,DISP=SHR   
//SYSIN DD *                             
XYZ                                       
/*                                       
//SYSOUT  DD SYSOUT=*


Edited: Please use BBcode when You post some code, that's rather readable, Thanks...Anuj
Back to top
View user's profile Send private message
dharmendra_kp

New User


Joined: 10 Mar 2005
Posts: 33
Location: Lewiston

PostPosted: Tue Dec 23, 2008 4:52 pm
Reply with quote

pass some numeric value for NUM1 & NUM2 instead of XYZ.
Back to top
View user's profile Send private message
Robert Sample

Global Moderator


Joined: 06 Jun 2008
Posts: 8700
Location: Dubuque, Iowa, USA

PostPosted: Tue Dec 23, 2008 5:43 pm
Reply with quote

What does your JCL to run this program look like?
Back to top
View user's profile Send private message
Robert Sample

Global Moderator


Joined: 06 Jun 2008
Posts: 8700
Location: Dubuque, Iowa, USA

PostPosted: Tue Dec 23, 2008 5:52 pm
Reply with quote

Quote:

pass some numeric value for NUM1 & NUM2 instead of XYZ.
Please note there are no ACCEPT statements or READ statements in the COBOL code. The XYZ is not being passed to the program. NUM1 and NUM2 have VALUE clauses.
Back to top
View user's profile Send private message
PeD

Active User


Joined: 26 Nov 2005
Posts: 459
Location: Belgium

PostPosted: Tue Dec 23, 2008 5:53 pm
Reply with quote

Quote:
pass some numeric value for NUM1 & NUM2 instead of XYZ.

SYSIN has nothing to do here.
Back to top
View user's profile Send private message
PeD

Active User


Joined: 26 Nov 2005
Posts: 459
Location: Belgium

PostPosted: Tue Dec 23, 2008 5:57 pm
Reply with quote

Just too late, you are first,Robert

Also, DISPLAY UPON xxxx Which is your system's output display?
Back to top
View user's profile Send private message
Terry Heinze

JCL Moderator


Joined: 14 Jul 2008
Posts: 1248
Location: Richfield, MN, USA

PostPosted: Wed Dec 24, 2008 12:27 am
Reply with quote

As expat 1st pointed out, MSGCLASS is probably the key to where your DISPLAY went.
Back to top
View user's profile Send private message
Terry Heinze

JCL Moderator


Joined: 14 Jul 2008
Posts: 1248
Location: Richfield, MN, USA

PostPosted: Wed Dec 24, 2008 12:31 am
Reply with quote

Also, to verify you are executing the program you think you are executing, it would help to add the DATE-COMPILED clause to your source and to display the WHEN-COMPILED register at execute time.
Back to top
View user's profile Send private message
vasanthkumarhb

Active User


Joined: 06 Sep 2007
Posts: 275
Location: Bang,iflex

PostPosted: Wed Dec 24, 2008 1:16 am
Reply with quote

Hi,



The main problem with this code is missing ACCEPT statement. Coding is completely wrong. The data being sent should be numeric rather Alphanumeric.


[/list][/code][/quote]
Back to top
View user's profile Send private message
PeD

Active User


Joined: 26 Nov 2005
Posts: 459
Location: Belgium

PostPosted: Wed Dec 24, 2008 1:39 am
Reply with quote

vasanthkumarhb

Please re-read the code : XYZ is not used here.

Code is not completely wrong for a first exercise. It is just unnecessary extra code.
Back to top
View user's profile Send private message
vasanthkumarhb

Active User


Joined: 06 Sep 2007
Posts: 275
Location: Bang,iflex

PostPosted: Wed Dec 24, 2008 1:44 am
Reply with quote

PeD,


Thanks for the correction, I was noticing with out ACCEPT statement JCL code will not move that value to the respective variable.
Back to top
View user's profile Send private message
Robert Sample

Global Moderator


Joined: 06 Jun 2008
Posts: 8700
Location: Dubuque, Iowa, USA

PostPosted: Wed Dec 24, 2008 1:57 am
Reply with quote

Vasanth: it is not wrong to have extraneous DD statements in a COBOL run job. The data won't be usable or referenced, but you can put almost as many extra DD statements as desired in the job (up to the operating system limit). The run job having //SYSIN DD * is not going to have anything happen with the data. The program does nothing with SYSIN so nothing will happen with any data after the SYSIN. Since the program didn't have any ACCEPT statement to start with, it probably wasn't supposed to have one.

Pahi: I have verified by compiling and running your code that you should get a line of output in the SYSOUT DD statement. If it is not showing up there, you need to discuss with your peers or system support staff what SYSOUT class to use for output you wish to display. Depending on how your system is set up, and the JOB statement options, your option could be automatically routed to a spool manager instead of allowing you to see it via SDSF, (E)JES, or the like. SYSOUT classes are extremely site dependent and we cannot tell you which class will work for you -- only someone at your site has that information.
Back to top
View user's profile Send private message
Anuj Dhawan

Superior Member


Joined: 22 Apr 2006
Posts: 6248
Location: Mumbai, India

PostPosted: Wed Dec 24, 2008 10:30 am
Reply with quote

Hi pahi,

Do a favor to us - post the SYSOUT of the JOB you execute.
Back to top
View user's profile Send private message
dick scherrer

Moderator Emeritus


Joined: 23 Nov 2006
Posts: 19243
Location: Inside the Matrix

PostPosted: Wed Dec 24, 2008 10:54 am
Reply with quote

Hi Anuj,

Quote:
post the SYSOUT of the JOB you execute
Ah, well, that would be the problem - the output (includng SYSOUT) has disappeared. . .sterb050.gif

d
Back to top
View user's profile Send private message
Anuj Dhawan

Superior Member


Joined: 22 Apr 2006
Posts: 6248
Location: Mumbai, India

PostPosted: Wed Dec 24, 2008 11:31 am
Reply with quote

I give up.. icon_evil.gif
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> ABENDS & Debugging

 


Similar Topics
Topic Forum Replies
No new posts REXX/CMS How to place command console... CLIST & REXX 4
No new posts Reroute print output via REXX/SDSF TSO/ISPF 6
No new posts Concatenate 2 input datasets and give... JCL & VSAM 2
No new posts How to turn off 'ACTION' SDSF output ... TSO/ISPF 2
No new posts TRIM everything from input, output co... DFSORT/ICETOOL 1
Search our Forums:

Back to Top