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

JCL for displaying STDOUT data from a called C program


IBM Mainframe Forums -> JCL & VSAM
Post new topic   Reply to topic
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
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
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
Reply with quote

Hi scottf_wilson,

set 'SYSPRINT DD SYSOUT=*'.

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

Superior Member


Joined: 14 Mar 2007
Posts: 10872
Location: italy

PostPosted: Mon Mar 17, 2008 2:56 pm
Reply with quote

What compiler are You using to cross compile ??
Back to top
View user's profile Send private message
dick scherrer

Moderator Emeritus


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

PostPosted: Mon Mar 17, 2008 5:07 pm
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
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 View Bookmarks
All times are GMT + 6 Hours
Forum Index -> JCL & VSAM

 


Similar Topics
Topic Forum Replies
No new posts Using API Gateway from CICS program CICS 0
No new posts Data set Rec-Cnt and Byte-Cnt Testing & Performance 2
No new posts SCOPE PENDING option -check data DB2 2
No new posts Check data with Exception Table DB2 0
No new posts JCL EXEC PARM data in C Java & MQSeries 2
Search our Forums:

Back to Top