Hello,
Is it possible to change to lowercase in a Skeleton.
Example
P is a variable defined in a Panel, lets say XXXX
For OMVS segment I define in SKELETON
omvs(home('/var/ansible/home/&P'))
Result is omvs(home('/var/ansible/home/XXXX')) but I want to have omvs(home('/var/ansible/home/xxxx'))
Anybody any idea how to solve
With kind regards
Stan van oers
Swith to lowercase in ISPF skeleton
-
- Posts: 3
- Joined: Thu Oct 28, 2021 8:16 pm
- Skillset: zos
Racf - Referer: Work and Google
- 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: Swith to lowercase in ISPF skeleton
I used skeletons about 10+ years ago.
AFAIR there is the option of using REXX inside of the skeleton.
Control statements
AFAIR there is the option of using REXX inside of the skeleton.
Control statements
Code: Select all
. . . . . .
)REXX
. . . use TRANSLATE function to convert &P to uppercase/lowercase . . . . .
)ENDREXX
. . . . .
Javas and Pythons come and go, but JCL and SORT stay forever.
-
- 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: Swith to lowercase in ISPF skeleton
No problems with lowercase characters, though the skeleton commands themselves must be in uppercase.
That panel variable P should then be defined as CAPS(NO). Or use a instream converter REXX as shown above.
By the way, the syntax is:
)REXX P
transform P
)ENDREXX
That panel variable P should then be defined as CAPS(NO). Or use a instream converter REXX as shown above.
By the way, the syntax is:
)REXX P
transform P
)ENDREXX
- Pedro
- Posts: 686
- Joined: Thu Jul 31, 2008 9:59 pm
- Skillset: ISPF
- Referer: google
- Location: Silicon Valley
Re: Swith to lowercase in ISPF skeleton
re: That panel variable P should then be defined as CAPS(NO)
I think Willy is on to something. The user would normally type without setting the case, but the default panel attribute is to translate to uppercase. You might solve your problem by explicitly specifying CAPS(NO) in the panel definition.
Design wise, I think you should honor the case if the user explicitly specifies mixed case, like 'xxXx'.
a tangent: When I was a developer at IBM, we received a requirement to allow mixed case in IMS operator commands. We had a prolonged discussion about what that meant. fyi. It is clear that it was not uppercase, but people thought mixed case only meant to allow lowercase. The customer wanted to allow any mixture of lowercase and uppercase.
I think Willy is on to something. The user would normally type without setting the case, but the default panel attribute is to translate to uppercase. You might solve your problem by explicitly specifying CAPS(NO) in the panel definition.
Design wise, I think you should honor the case if the user explicitly specifies mixed case, like 'xxXx'.
a tangent: When I was a developer at IBM, we received a requirement to allow mixed case in IMS operator commands. We had a prolonged discussion about what that meant. fyi. It is clear that it was not uppercase, but people thought mixed case only meant to allow lowercase. The customer wanted to allow any mixture of lowercase and uppercase.
Pedro Vera
-
- 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: Swith to lowercase in ISPF skeleton
Pedros reply got me thinking that just blindly converting to lowercase might not be such a good idea. OMVS filenames are mixed case, so the user might actually want to have a mixture of upper- and lowercase in the name.
-
- Similar Topics
- Replies
- Views
- Last post
-
- 8
- 3531
-
by willy jensen
View the latest post
Mon Jun 05, 2023 2:02 am
-
- 11
- 3961
-
by Pedro
View the latest post
Tue Apr 27, 2021 10:06 am
-
- 1
- 1384
-
by Pedro
View the latest post
Wed May 03, 2023 11:21 am
-
- 5
- 5491
-
by willy jensen
View the latest post
Mon Jul 17, 2023 12:41 pm
-
- 0
- 1223
-
by rossburnett
View the latest post
Tue May 23, 2023 3:19 am