Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
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
 
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: 8619
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: 7314

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: 1783
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: 10374
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 The same REXX program doesnt work for... jackzhang75 CLIST & REXX 5 Wed Dec 06, 2017 2:51 am
No new posts Calling IKJEFT01 program from Rexx upendrasri CLIST & REXX 8 Wed Nov 15, 2017 4:27 pm
No new posts Job is running with no response!!! Vignesh Sid DB2 3 Fri Oct 27, 2017 6:28 pm
No new posts How to write Rexx program to size and... sreejeshcs CLIST & REXX 14 Thu Oct 12, 2017 7:26 am
No new posts Accessing CICS tran with map from JCL... navdeepaggarwal CICS 5 Tue Oct 03, 2017 6:15 pm

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us