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
 

 

JCL for displaying STDOUT data from a called C program

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
View previous topic :: :: View next topic  
Author Message
scottf_wilson

New User


Joined: 04 Dec 2006
Posts: 1
Location: Toronto

PostPosted: Wed Dec 06, 2006 10:00 pm    Post subject: JCL for displaying STDOUT data from a called C program
Reply with quote

Hi

We've got an issue where a Cobol program is calling a C program and the C program is abending. The C program is developed and compiled on a windows platform and uploaded to the mainframe where the object code is relinked into an executable form (we have no C compiler on the mainframe).

On the desktop when the C program is fed the data causing the abend, it has no problems. The developer has added debugging information which writes to the STDOUT file. We are running this debug version on the mainframe but we are unable to see the debugging data.

I've tried using 'STDOUT DD SYSOUT=*' thinking that may work. Is there anyway to see this data on the mainframe via JCL changes?

Thanks.
Back to top
View user's profile Send private message

hariavinash

New User


Joined: 04 Jan 2006
Posts: 64

PostPosted: Wed Dec 06, 2006 11:00 pm    Post subject:
Reply with quote

it is likely that your shop has a default redirection on the STDOUT ouputs.
If not, the STDOUT is not producing any outputs. Try redirecting this to a file to check if this is getting back from the execution.

cheers
Back to top
View user's profile Send private message
ppleva

New User


Joined: 10 Dec 2007
Posts: 7
Location: Czech Republic

PostPosted: Mon Mar 17, 2008 2:52 pm    Post subject: Re: JCL for displaying STDOUT data from a called C program
Reply with quote

Hi scottf_wilson,

set 'SYSPRINT DD SYSOUT=*'.

pp
Back to top
View user's profile Send private message
enrico-sorichetti

Global Moderator


Joined: 14 Mar 2007
Posts: 10274
Location: italy

PostPosted: Mon Mar 17, 2008 2:56 pm    Post subject: Reply to: JCL for displaying STDOUT data from a called C pro
Reply with quote

What compiler are You using to cross compile ??
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: Mon Mar 17, 2008 5:07 pm    Post subject:
Reply with quote

Hello Scott and welcome to the forums,

What abend are you getting on the mainframe?

Has anyone on your system uploaded a win-based c executable and successfully linked/executed it or is this the first attempt?

If you post the mainframe execute jcl and and the output messages from the link-edit, it may help us help you.
Back to top
View user's profile Send private message
Bill Dennis

Active Member


Joined: 17 Aug 2007
Posts: 562
Location: Iowa, USA

PostPosted: Tue Mar 18, 2008 2:57 am    Post subject:
Reply with quote

I use this:
Code:
//STDOUT DD PATH='/etc/userid/mypgm.stdout',   
//          PATHOPTS=(OWRONLY,OCREAT,OTRUNC),   
//          PATHMODE=SIRWXU                     
and go browse the file after execution.
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 -> JCL & VSAM All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts copying data without knowing location arunsoods DFSORT/ICETOOL 6 Thu Jul 20, 2017 1:03 pm
This topic is locked: you cannot edit posts or make replies. Fetching data from BAI File arunsoods JCL & VSAM 1 Wed Jul 19, 2017 4:28 pm
No new posts Could we identify the called modules ... elixir1986 COBOL Programming 5 Fri Jul 14, 2017 1:53 am
No new posts Loading data to table gives wrong for... Raghu navaikulam DB2 18 Thu Jul 13, 2017 2:11 pm
No new posts Reg:Displaying the particular month o... bhavana yalavarthi All Other Mainframe Topics 4 Sat Jul 08, 2017 8:13 pm


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