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: 10256
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 Replace values in the input data Vikas Maharnawar DFSORT/ICETOOL 10 Thu May 11, 2017 2:18 pm
No new posts IMS T-Pipe queue counts in a COBOL Pr... Siva NKK Kothamasu IMS DB/DC 0 Tue May 09, 2017 6:31 pm
No new posts Group Data based on a key Arun Raj DFSORT/ICETOOL 7 Thu Apr 27, 2017 11:29 pm
No new posts unload data from table with lob columns farhad_evan DB2 0 Sat Apr 22, 2017 1:32 pm
No new posts Need help in REXX CALL program Raje1002 CLIST & REXX 5 Wed Apr 19, 2017 11:18 pm


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