IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

How to STRIP blanks from the variable from ISPF SKELETON


IBM Mainframe Forums -> TSO/ISPF
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
slavka

New User


Joined: 10 Feb 2009
Posts: 2
Location: IL

PostPosted: Wed Feb 11, 2009 4:26 am
Reply with quote

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
View user's profile Send private message
MBabu

Active User


Joined: 03 Aug 2008
Posts: 400
Location: Mumbai

PostPosted: Wed Feb 11, 2009 5:42 am
Reply with quote

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
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8797
Location: Welsh Wales

PostPosted: Wed Feb 11, 2009 12:36 pm
Reply with quote

Quote:
This has to be done from within the SKELETON. Please help.

Why.
Back to top
View user's profile Send private message
slavka

New User


Joined: 10 Feb 2009
Posts: 2
Location: IL

PostPosted: Thu Feb 12, 2009 8:18 pm
Reply with quote

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
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> TSO/ISPF

 


Similar Topics
Topic Forum Replies
No new posts Extracting Variable decimal numbers f... DFSORT/ICETOOL 17
No new posts Looking for a little history of ISPF ... TSO/ISPF 5
No new posts Adding QMF and SPUFI to the ISPF menu DB2 20
No new posts Variable Output file name DFSORT/ICETOOL 8
No new posts Issue after ISPF copy to Linklist Lib... TSO/ISPF 1
Search our Forums:

Back to Top