View previous topic :: View next topic
|
Author |
Message |
Anees I K
New User
Joined: 21 Nov 2005 Posts: 1 Location: Trivandrum-Kerala
|
|
|
|
How can I compile and run a C or C++ program?
Regards,
Anees I K |
|
Back to top |
|
|
Gautam512
Active User
Joined: 05 Oct 2005 Posts: 308 Location: Vizag / US
|
|
|
|
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 |
|
|
senthils
Active User
Joined: 15 Nov 2005 Posts: 117 Location: Chennai, India
|
|
|
|
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 |
|
|
pmvino
New User
Joined: 22 Aug 2008 Posts: 20 Location: india
|
|
|
|
The utility used for this is "EDCCLG" give the dataset having c program in the "infile" and the loadlib in "OUTFILE". |
|
Back to top |
|
|
Anuj Dhawan
Superior Member
Joined: 22 Apr 2006 Posts: 6250 Location: Mumbai, India
|
|
|
|
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..
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 |
|
|
|