MVSFORUMS.com Forum Index MVSFORUMS.com
A Community of and for MVS Professionals
 
 FAQFAQ   SearchSearch   Quick Manuals   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

How to pass parameters to a C program through a JCL

 
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Job Control Language(JCL)
View previous topic :: View next topic  
Author Message
vani
Beginner


Joined: 28 May 2003
Posts: 51
Topics: 30

PostPosted: Mon Nov 10, 2003 3:02 am    Post subject: How to pass parameters to a C program through a JCL Reply with quote

Hi,

my problem is as below

Currently in our program the system variable &CREATOR is used as a qualifier of some of the tables.Need to find out how in the C program can we use it dynamically to qualify the tables.either through JCL or any other means?

How to pass parameters to a C program through a JCL. What changes need to be made in C program.

Regards,
Vani
Back to top
View user's profile Send private message
vinay
Beginner


Joined: 07 Nov 2003
Posts: 1
Topics: 0
Location: Bangalore, India

PostPosted: Tue Nov 11, 2003 12:57 am    Post subject: Reply with quote

Hi Vani,

Just pass it using the PARM parameter in the EXEC step.

//STEP1 EXEC PGM=MYCPGM,PARM='&CREATOR'

Well, you could code your main as 'main(creator)' or something like that and make sure you define that variable inside the main routine. I'm not really a 'C' guy but, i remember a few things here and there.

Enjoy,
Vinay
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Job Control Language(JCL) All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


MVSFORUMS
Powered by phpBB © 2001, 2005 phpBB Group