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 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: 10308
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 LIBDEF not working in called proc packerm CLIST & REXX 0 Fri Sep 15, 2017 7:22 pm
No new posts Question related to Data dictionary f... rexx77 SYNCSORT 3 Thu Aug 31, 2017 7:23 am
No new posts Extract Data till prev hour balaji81_k DB2 16 Fri Aug 25, 2017 9:25 pm
No new posts FTP data transfer from PC to Mainfram... AJAYREDDY All Other Mainframe Topics 8 Wed Aug 23, 2017 9:59 pm
No new posts Unable to copy data from spool in a d... srikant314 JCL & VSAM 8 Fri Jul 28, 2017 9:10 pm

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