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
 

 

How to Compile a C or C++ program

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
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    Post subject: How to Compile a C or C++ program
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: 309
Location: Vizag / US

PostPosted: Wed Jan 18, 2006 9:59 pm    Post subject: Re: How to Compile a C or C++ program in Mainframe
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    Post subject:
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    Post subject: Reply to: How to Compile a C or C++ program in Mainframe
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

Senior Member


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

PostPosted: Mon Aug 25, 2008 3:29 pm    Post subject:
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 -

http://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    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 IMS T-Pipe queue counts in a COBOL Pr... Siva NKK Kothamasu IMS DB/DC 0 Tue May 09, 2017 6:31 pm
No new posts Need help in REXX CALL program Raje1002 CLIST & REXX 5 Wed Apr 19, 2017 11:18 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 OO COBOL compile error Virendra Shambharkar COBOL Programming 3 Tue Jan 10, 2017 6:05 pm


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