Hi,
I did a rexx panels where you can enter some choices, i use the variables &W and &K.
And i did a squels (skeleton) where i want to use the SEL/ENDSEL function.
I want when &K= O && &W = N
It doessomething
And when &W= O && &K = N
Do an other thing.
Actually when &K = O && W = N , it work but the other function doesn't.
Do someone know how to do it ?
Thanks
Multiple Sel/endsel in skeleton
Multiple Sel/endsel in skeleton
You do not have the required permissions to view the files attached to this post.
-
- Posts: 474
- Joined: Thu Mar 10, 2016 5:03 pm
- Skillset: assembler rexx zOS ispf racf smf
- Referer: saw it in the experts foprum thought I could help here
Re: Multiple Sel/endsel in skeleton
Try listing the values before the )SEL statement, just to make sure that they are as you expect, i..e
K = &K
W =&W
K = &K
W =&W
-
- Posts: 474
- Joined: Thu Mar 10, 2016 5:03 pm
- Skillset: assembler rexx zOS ispf racf smf
- Referer: saw it in the experts foprum thought I could help here
Re: Multiple Sel/endsel in skeleton
And please use the 'code' tags instead of screen shots.
- sergeyken
- Posts: 458
- Joined: Wed Jul 24, 2019 10:12 pm
- Skillset: Assembler, JCL, Utilities, PL/I, C/C++, DB2, SQL, REXX, COBOL, etc. etc. etc.
- Referer: Internet search
Re: Multiple Sel/endsel in skeleton
Why not:
Code: Select all
)IF &K= O && &W = N THEN )DO
It does something
)ENDDO
)ELSE )IF &W= O && &K = N THEN )DO
Do another thing.
)ENDDO
Javas and Pythons come and go, but JCL and SORT stay forever.
Re: Multiple Sel/endsel in skeleton
willy jensen wrote:And please use the 'code' tags instead of screen shots.
If i list the variable before the sel statement it doesn't work anymore
Re: Multiple Sel/endsel in skeleton
sergeyken wrote:Why not:Code: Select all
)IF &K= O && &W = N THEN )DO
It does something
)ENDDO
)ELSE )IF &W= O && &K = N THEN )DO
Do another thing.
)ENDDO
i tried the loop with if and it doesn't work too
only the sel loop is working
-
- Posts: 474
- Joined: Thu Mar 10, 2016 5:03 pm
- Skillset: assembler rexx zOS ispf racf smf
- Referer: saw it in the experts foprum thought I could help here
Re: Multiple Sel/endsel in skeleton
What do you mean, it doesnt work anymore if you add those 2 displays? Do you get an error message from the FTINCL command?
Anyway, I did a quick test and it works as expected, including listing the variables:
Anyway, I did a quick test and it works as expected, including listing the variables:
Code: Select all
)SET W = O
)SET K = N
K = &K
W = &W
)SEL &K = O && &W = N
k=O and W=N
)ENDSEL
)SEL &K = N && &W = O
k=N and W=O
)ENDSEL
-
- Posts: 474
- Joined: Thu Mar 10, 2016 5:03 pm
- Skillset: assembler rexx zOS ispf racf smf
- Referer: saw it in the experts foprum thought I could help here
Re: Multiple Sel/endsel in skeleton
Re error messages, I recommend that you do something like this:
Code: Select all
Address ispexec "control errors return"
Address ispexec "TBOPEN ..."
zerrlm=''
Address ispexec "TBINCL" skelname
if rc<>0 then say 'Include skel' skelname 'rc' rc 'msg' zerrlm
Re: Multiple Sel/endsel in skeleton
[quote="willy jensen"]What do you mean, it doesnt work anymore if you add those 2 displays? Do you get an error message from the FTINCL command?
I don't have any error but the loop doesn't execute anymore.
For example when i just have the sel loop for w = o
The rexx gonna execute and work
And if i had before the sel loop
w =&w
The rexx execute, it say "the program have been executed" but it doesn't work
I don't have any error but the loop doesn't execute anymore.
For example when i just have the sel loop for w = o
The rexx gonna execute and work
And if i had before the sel loop
w =&w
The rexx execute, it say "the program have been executed" but it doesn't work
-
- Posts: 474
- Joined: Thu Mar 10, 2016 5:03 pm
- Skillset: assembler rexx zOS ispf racf smf
- Referer: saw it in the experts foprum thought I could help here
Re: Multiple Sel/endsel in skeleton
I am confused, you started talking about a problem in skeleton services, but now you say that you have a logical problem in a REXX?
I would really like to see a trace of the REXX portion that fails, especially the part with the FTINCL command. Please list the ZERRLM variable after FTINCL, like SAY 'errlm='ZERRLM. Also a list of the skeleton would be helpful.
I would really like to see a trace of the REXX portion that fails, especially the part with the FTINCL command. Please list the ZERRLM variable after FTINCL, like SAY 'errlm='ZERRLM. Also a list of the skeleton would be helpful.
-
- Similar Topics
- Replies
- Views
- Last post
-
- 8
- 3550
-
by willy jensen
View the latest post
Mon Jun 05, 2023 2:02 am
-
- 4
- 2207
-
by willy jensen
View the latest post
Fri Jul 12, 2024 12:34 pm
-
- 9
- 3439
-
by samb01
View the latest post
Thu Oct 14, 2021 1:29 pm
-
-
Extract first record from multiple files
by Prasanna G » Wed Jan 13, 2021 2:14 pm » in DFSORT/ICETOOL/ICEGENER - 5
- 1775
-
by Prasanna G
View the latest post
Wed Jan 13, 2021 11:16 pm
-
-
-
Multiple remote job entry writing to the same dataset
by MLK2348 » Wed Nov 15, 2023 3:55 am » in JCL - 1
- 2277
-
by willy jensen
View the latest post
Wed Nov 15, 2023 1:50 pm
-