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 

pass a set of values in parm parameter to a pli program

 
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Application Programming
View previous topic :: View next topic  
Author Message
yadav2005
Intermediate


Joined: 10 Jan 2005
Posts: 348
Topics: 144

PostPosted: Wed Feb 16, 2005 2:45 pm    Post subject: pass a set of values in parm parameter to a pli program Reply with quote

hai,
I would like to pass say 5 different parameters in the parm parameter in
jcl to the pli program & in the program

I want to check for individual values passed via the parm parameter.when I found the correct input from any one of the inputs i gave in parm at the time I want to run the job with specific value ,say value "60" then I want to proceed further in the program other wise i want to come out of the program.

Edited by admin : Removed the uppercase posting
Back to top
View user's profile Send private message
Cogito-Ergo-Sum
Advanced


Joined: 15 Dec 2002
Posts: 637
Topics: 43
Location: Bengaluru, INDIA

PostPosted: Wed Feb 16, 2005 3:00 pm    Post subject: Reply with quote

And, your question is?
_________________
ALL opinions are welcome.

Debugging tip:
When you have eliminated all which is impossible, then whatever remains, however improbable, must be the truth.
-- Sherlock Holmes.
Back to top
View user's profile Send private message
kolusu
Site Admin
Site Admin


Joined: 26 Nov 2002
Posts: 12378
Topics: 75
Location: San Jose

PostPosted: Wed Feb 16, 2005 3:45 pm    Post subject: Reply with quote

yadav2005,

Please do not post in uppercase. Posting uppercase is like shouting. I edited the post to be in lowercase. Any way check this link for a example of passing parms via JCL to a pli program.

http://www.mvsforums.com/helpboards/viewtopic.php?t=3572

Kolusu
_________________
Kolusu
www.linkedin.com/in/kolusu
Back to top
View user's profile Send private message Send e-mail Visit poster's website
yadav2005
Intermediate


Joined: 10 Jan 2005
Posts: 348
Topics: 144

PostPosted: Wed Feb 16, 2005 4:34 pm    Post subject: CHECK FOR THE VALUE PASSED BY PARM PARAMETER & THEN PROC Reply with quote

Hai,

I want to pass all the parameters & check only the third parameter in the list '&PSB' which is two bytes in my program & in the program how do i check the '&PSB' value
which may have different values at different runs.Moreover , i want to first read the value '&psb' in the program ,if it satisfies any one my values like '12' / '13' /,
'14' / '15' only,then i should proceed further in the program.


PARM=(BMP,PGMNAME,G&PSB.XX08,,,&PRELOAD,,,,,,UNIT)




Will the code below work for me :

DCL INPARMS CHAR(02);
DCL 1 PARMS BASED(ADDR(INPARMS)),
2 PARM_LENGTH FIXED BINARY(15) INIT(0),
2 PARM_VAR CHAR(02);

DCL WS_VAR CHAR(02);


WS_VAR = PARM_VAR;
Back to top
View user's profile Send private message
Mervyn
Moderator


Joined: 02 Dec 2002
Posts: 415
Topics: 6
Location: Hove, England

PostPosted: Sat Feb 19, 2005 7:30 am    Post subject: Reply with quote

WS_VAR will receive whatever happens to be in the two bytes following INPARMS. Is that what you're trying to achieve?
_________________
The day you stop learning the dinosaur becomes extinct
Back to top
View user's profile Send private message
Unspec
Beginner


Joined: 02 Dec 2002
Posts: 6
Topics: 1
Location: Nottingham

PostPosted: Mon Feb 21, 2005 5:13 am    Post subject: Reply with quote

Hi

Try ...

Code:

DCL INPARMS CHAR(02) VARYING;
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 -> Application Programming 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