View previous topic :: View next topic
|
Author |
Message |
slavka
New User
Joined: 10 Feb 2009 Posts: 2 Location: IL
|
|
|
|
Can someone tell me please how to strip blanks from the variable from the ISPF SKELETON?. When the skeleton executes, I have a variable that is passed to the skeleton that has BLANKS in it and need to strip those blank directly in the SKELETON.
I tried &TRUNC, &LENGTH, LEFT and many other commands, but nothing seemed to work. I also tried to invoke REXX directly from the skeleton, but can’t pass a variable to the rexx. The code looks like this:
)REXX &DESTID
/* REXX */
TRACE(R)
ARG
SAY 'ARG =('ARG')'
SAY 'DESTID =('DESTID')'
RETURN
)ENDREXX
DESTID is the variable that has spaces. When REXX executes, nothing is passed on to it.
This has to be done from within the SKELETON. Please help.
Thank you.
Slava. |
|
Back to top |
|
|
MBabu
Active User
Joined: 03 Aug 2008 Posts: 400 Location: Mumbai
|
|
|
|
I never knew any of this existed, but the doc looks like you need )REXX DESTID no ampersand, and there is also a &STRIP() function. Try them and let us know if they work pls |
|
Back to top |
|
|
expat
Global Moderator
Joined: 14 Mar 2007 Posts: 8797 Location: Welsh Wales
|
|
|
|
Quote: |
This has to be done from within the SKELETON. Please help. |
Why. |
|
Back to top |
|
|
slavka
New User
Joined: 10 Feb 2009 Posts: 2 Location: IL
|
|
|
|
Just a business needs. Removing blanks from within the skeletos is the easiest way, of course if I can get it to work. Any other ways would require more customizations to the software I support. |
|
Back to top |
|
|
|