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

Running a C program with JCL


IBM Mainframe Forums -> JCL & VSAM
Post new topic   Reply to topic
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
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: 8797
Location: Welsh Wales

PostPosted: Thu Jun 30, 2011 12:03 pm
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

Moderator Emeritus


Joined: 09 Mar 2011
Posts: 7309
Location: Inside the Matrix

PostPosted: Thu Jun 30, 2011 12:03 pm
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

Moderator Emeritus


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

PostPosted: Thu Jun 30, 2011 8:53 pm
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: 1788
Location: Bloomington, IL

PostPosted: Thu Jun 30, 2011 9:09 pm
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

Superior Member


Joined: 14 Mar 2007
Posts: 10873
Location: italy

PostPosted: Thu Jun 30, 2011 10:36 pm
Reply with quote

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

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

and proceed to discover the power of manuals here

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

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 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 Running REXX through JOB CLIST & REXX 13
No new posts DB2 Event passed to the Application P... DB2 1
No new posts How to pass the PARM value to my targ... COBOL Programming 8
No new posts REXX code to expand copybook in a cob... CLIST & REXX 2
Search our Forums:

Back to Top