View previous topic :: View next topic
|
Author |
Message |
seenivasakan Currently Banned New User
Joined: 13 May 2007 Posts: 13 Location: Karnataka
|
|
|
|
Hi all,
i have a requirement to find the position of last character in a particular JCL. Using LASTPOS function in REXX we can able to find the lastposition of the known character.
Ex: // MGMTCLAS=M35D06M,STORCLAS=SBTACH
// DISP=SHR
For the above two lines the last character position is different. i am intrested to know how to find the Last Character Position?
Please share your ideas. |
|
Back to top |
|
|
enrico-sorichetti
Superior Member
Joined: 14 Mar 2007 Posts: 10872 Location: italy
|
|
|
|
for the solution to be simple You must assume that the statement contains no comment after the parameters...
something like
Code: |
tmp = strip(stmt,"T"," ")
pos = lenght(tmp)
|
if the line contain comments a forward parsing is needed
regards
e.s |
|
Back to top |
|
|
seenivasakan Currently Banned New User
Joined: 13 May 2007 Posts: 13 Location: Karnataka
|
|
|
|
Thanks enrico-sorichetti
Thanks for giving a direction to solve the problem.
Regards |
|
Back to top |
|
|
|