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
 

 

Running a C program with JCL

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

New User


Joined: 02 Jun 2011
Posts: 4
Location: hyderabad

PostPosted: Thu Jun 30, 2011 11:40 am    Post subject: Running a C program with JCL
Reply with quote

hi,

can anyone tell me, if we can run a C program in Mainframes and if yes please tell me how can we do it.
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: Thu Jun 30, 2011 12:03 pm    Post subject:
Reply with quote

Have you googled ........................ I have

Off you go, and come back when you hit something that you have problems with
Back to top
View user's profile Send private message
Bill Woodger

DFSORT Moderator


Joined: 09 Mar 2011
Posts: 7306

PostPosted: Thu Jun 30, 2011 12:03 pm    Post subject:
Reply with quote

If you have a look at the Language Enrvironment documentation you'll get part of your answer. Or google.

I'd take a wild guess for the second part: compile it; link it; exec pgm=it.

I do suspect you'll be able to find a manual through google. Make that a wide selection of manuals from IBM, you can sort out what is and is not relevant to your requirement. They will included sample code, sample JCL etc.
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: Thu Jun 30, 2011 8:53 pm    Post subject:
Reply with quote

Hello,

If your environment permits use of C, there should already be compile jcl available on your system. Use the standard compile jcl (and do not make up your own). Once compiled/linked, submit jcl to run the program.
Back to top
View user's profile Send private message
Akatsukami

Global Moderator


Joined: 03 Oct 2009
Posts: 1753
Location: Bloomington, IL

PostPosted: Thu Jun 30, 2011 9:09 pm    Post subject: Re: Running a C progrma with JCL
Reply with quote

shilpa.m7 wrote:
hi,

can anyone tell me, if we can run a C program in Mainframes

Yes.
Quote:
and if yes please tell me how can we do it.

The usual way.

All host programs, no matter what language they are written in, compile to the same System z machine language (unless a Java-style pseudo-compile is actually being done); it does not matter if the source for FOO is COBOL, PL/I, C, FORTRAN, Ada, or RPG II, the load module is invoked in the same way, via JCL in batch, or CLIST icon_oak.gif or Rexx in TSO (foreground or background).

If you seeking a method of compiling a C program, then, as Mr. Scherrer says, you should use the site-mandated procedures and inquire of your site support or your senpai as to uncertainties. If there are no local procedures for compiling C, that is a strong hint that doing so can lead undesirable consequences, up to and including termination.
Back to top
View user's profile Send private message
enrico-sorichetti

Global Moderator


Joined: 14 Mar 2007
Posts: 10231
Location: italy

PostPosted: Thu Jun 30, 2011 10:36 pm    Post subject: Reply to: Running a C progrma with JCL
Reply with quote

yes we can...
how... why not surprise us by finding out yourself icon_cool.gif

searching the forums to reach
http://www.ibmmainframes.com/viewtopic.php?t=52184&highlight=edcqcbg

and proceed to discover the power of manuals here

http://publibz.boulder.ibm.com/cgi-bin/bookmgr_OS390/BOOKS/cbcug170/CONTENTS?SHELF=CBCBS190&DT=20080708122353#9.5.5

http://publibz.boulder.ibm.com/cgi-bin/bookmgr_OS390/BOOKS/cbcug170/9.5.5?ACTION=MATCHES&REQUEST=EDCQCBG&TYPE=FUZZY&SHELF=CBCBS190&DT=20080708122353&CASE=&searchTopic=TOPIC&searchText=TEXT&searchIndex=INDEX&rank=RANK&ScrollTOP=FIRSTHIT#FIRSTHIT
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 Determine Region with max bandwidth f... seahawk789 COBOL Programming 3 Mon Feb 27, 2017 8:26 pm
No new posts SQL query not working in Cobol program. CuriousMainframer COBOL Programming 14 Wed Feb 22, 2017 5:56 pm
No new posts Executing OO COBOL program invoking J... Virendra Shambharkar COBOL Programming 2 Tue Jan 10, 2017 6:37 pm
No new posts Need Suggestion on COBOL program vickey_dw COBOL Programming 5 Thu Jan 05, 2017 10:55 pm
No new posts I can not compile my program PL1 V3.R... Miguel Fernandez PL/I & Assembler 13 Tue Dec 06, 2016 8:30 pm


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