Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

My output is not displaying even after run?

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> ABENDS & Debugging
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    Post subject: My output is not displaying even after run?
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: 2158
Location: @my desk

PostPosted: Tue Dec 23, 2008 9:17 am    Post subject:
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

Site Director


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

PostPosted: Tue Dec 23, 2008 9:57 am    Post subject:
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: 8593
Location: Back in jolly old England

PostPosted: Tue Dec 23, 2008 12:50 pm    Post subject: Re: My output is not displaying even after run?
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

Senior Member


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

PostPosted: Tue Dec 23, 2008 3:14 pm    Post subject:
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    Post subject:
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    Post subject:
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: 7909
Location: Bellevue, IA

PostPosted: Tue Dec 23, 2008 5:43 pm    Post subject:
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: 7909
Location: Bellevue, IA

PostPosted: Tue Dec 23, 2008 5:52 pm    Post subject:
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: 456
Location: Belgium

PostPosted: Tue Dec 23, 2008 5:53 pm    Post subject:
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: 456
Location: Belgium

PostPosted: Tue Dec 23, 2008 5:57 pm    Post subject:
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: 1238
Location: Richfield, MN, USA

PostPosted: Wed Dec 24, 2008 12:27 am    Post subject:
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: 1238
Location: Richfield, MN, USA

PostPosted: Wed Dec 24, 2008 12:31 am    Post subject:
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: 276
Location: Bang,iflex

PostPosted: Wed Dec 24, 2008 1:16 am    Post subject:
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: 456
Location: Belgium

PostPosted: Wed Dec 24, 2008 1:39 am    Post subject:
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: 276
Location: Bang,iflex

PostPosted: Wed Dec 24, 2008 1:44 am    Post subject:
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: 7909
Location: Bellevue, IA

PostPosted: Wed Dec 24, 2008 1:57 am    Post subject:
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

Senior Member


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

PostPosted: Wed Dec 24, 2008 10:30 am    Post subject:
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

Site Director


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

PostPosted: Wed Dec 24, 2008 10:54 am    Post subject: Reply to: My output is not displaying even after run?
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

Senior Member


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

PostPosted: Wed Dec 24, 2008 11:31 am    Post subject:
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    IBMMAINFRAMES.com Support Forums -> ABENDS & Debugging All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Problem in writing Output file vickey_dw COBOL Programming 5 Mon Nov 14, 2016 11:14 pm
No new posts Syncsort - Hard coded Value in output PORYES SYNCSORT 1 Thu Nov 03, 2016 9:23 am
No new posts output data in CSV Format janmejay COBOL Programming 8 Sat Oct 15, 2016 2:20 pm
This topic is locked: you cannot edit posts or make replies. output data in CSV Format janmejay DFSORT/ICETOOL 3 Sat Oct 15, 2016 2:16 pm
No new posts ICETOOL/SYNCSORT - SYSPRINT output nartcr DFSORT/ICETOOL 17 Wed Oct 05, 2016 10:46 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us