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

How to Compile a C or C++ program


IBM Mainframe Forums -> JCL & VSAM
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
Anees I K

New User


Joined: 21 Nov 2005
Posts: 1
Location: Trivandrum-Kerala

PostPosted: Mon Jan 16, 2006 4:40 pm
Reply with quote

How can I compile and run a C or C++ program?

Regards,
Anees I K
Back to top
View user's profile Send private message
Gautam512

Active User


Joined: 05 Oct 2005
Posts: 308
Location: Vizag / US

PostPosted: Wed Jan 18, 2006 9:59 pm
Reply with quote

Hi Anees,

There will be a driver program with unique parameters that support the ur program to compile which has to executed from the JCL....

It completly depends on your environment, the driver program changes from one environment to other.
Back to top
View user's profile Send private message
senthils

Active User


Joined: 15 Nov 2005
Posts: 117
Location: Chennai, India

PostPosted: Thu Jan 19, 2006 12:19 pm
Reply with quote

In ISPF Primary Option menu you have the option to either compile the program in foreground(Interactive language processing) or batch(Submit job for language processing). You can use these option to compile your programs.
Back to top
View user's profile Send private message
pmvino

New User


Joined: 22 Aug 2008
Posts: 20
Location: india

PostPosted: Mon Aug 25, 2008 2:46 pm
Reply with quote

The utility used for this is "EDCCLG" give the dataset having c program in the "infile" and the loadlib in "OUTFILE".
Back to top
View user's profile Send private message
Anuj Dhawan

Superior Member


Joined: 22 Apr 2006
Posts: 6250
Location: Mumbai, India

PostPosted: Mon Aug 25, 2008 3:29 pm
Reply with quote

Hi Vinodh,

Well, as one of my most favourite Moderator would say "Welcome to the Forums" but you are little late in replying to this post..post date
Quote:
Mon Jan 16, 2006 4:10 pm
looks little old, isn't it.. icon_smile.gif

Well, when the "Mummy" is alive, let me also face it -

There is IBM C/370 compiler which supports a C-language level compatible with the American National Standards Institute (ANSI) C-language standard.

There are three JCL procedures available to access the C/370 compiler following is the JCL used to invoke the C/370. They are

EDCC : compiles a C program and creates an object deck.
EDCCL :compiles a C program, link-edits and creates an executable module.
EDCCLG: compiles a C program, link-edits, creates a program module and executes the program.


The following JCL example is used to compile a C program using the EDCC proc.
Code:
//jobname JOB (xxxx,yyyy),'distribution',                             
//   CLASS=c,TIME=(mm,ss)
/*ROUTE PRINT destination                                                   
//STEP1 EXEC EDCC                                                           
//SYSIN DD *                                                               
   C source code                                                             
/*                                                                         
//*


The following JCL example is used to compile and link-edit a C program using the EDCCL proc.
Code:
//jobname JOB (xxxx,yyyy),'distribution',                                 
//   CLASS=c,TIME=(mm,ss)                                                 
/*ROUTE PRINT destination                                                   
//STEP1 EXEC EDCCL                                                         
//SYSIN DD *                                                               
  C source code                                                             
/*


The following JCL example is used to compile, link-edit and execute a C program using the EDCCLG proc.
Code:
//jobname JOB (xxxx,yyyy),'distribution',                                 
//   CLASS=c,TIME=(mm,ss)                                                   
/*ROUTE PRINT destination                                                   
//STEP1 EXEC EDCCLG                                                         
//SYSIN DD *                                                               
  C source code                                                             
/*                                                                         
//*


And here one more descriptive lnik -

publib.boulder.ibm.com/infocenter/zos/v1r9/index.jsp?topic=/com.ibm.zos.r9.cbcux01/cbcug160365.htm
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 Compile Several JCL JOB Through one r... CLIST & REXX 4
No new posts Using API Gateway from CICS program CICS 0
No new posts Compile rexx code with jcl CLIST & REXX 6
No new posts C Compile time time stamps Java & MQSeries 10
No new posts DB2 Event passed to the Application P... DB2 1
Search our Forums:

Back to Top