View previous topic :: View next topic |
Author |
Message |
yadav2005 Intermediate

Joined: 10 Jan 2005 Posts: 348 Topics: 144
|
Posted: Wed Feb 16, 2005 2:45 pm Post subject: pass a set of values in parm parameter to a pli program |
|
|
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 |
|
 |
Cogito-Ergo-Sum Advanced
Joined: 15 Dec 2002 Posts: 637 Topics: 43 Location: Bengaluru, INDIA
|
Posted: Wed Feb 16, 2005 3:00 pm Post subject: |
|
|
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 |
|
 |
kolusu Site Admin

Joined: 26 Nov 2002 Posts: 12378 Topics: 75 Location: San Jose
|
|
Back to top |
|
 |
yadav2005 Intermediate

Joined: 10 Jan 2005 Posts: 348 Topics: 144
|
Posted: Wed Feb 16, 2005 4:34 pm Post subject: CHECK FOR THE VALUE PASSED BY PARM PARAMETER & THEN PROC |
|
|
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 |
|
 |
Mervyn Moderator

Joined: 02 Dec 2002 Posts: 415 Topics: 6 Location: Hove, England
|
Posted: Sat Feb 19, 2005 7:30 am Post subject: |
|
|
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 |
|
 |
Unspec Beginner
Joined: 02 Dec 2002 Posts: 6 Topics: 1 Location: Nottingham
|
Posted: Mon Feb 21, 2005 5:13 am Post subject: |
|
|
Hi
Try ...
Code: |
DCL INPARMS CHAR(02) VARYING;
|
|
|
Back to top |
|
 |
|
|