Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

How to STRIP blanks from the variable from ISPF SKELETON

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> TSO/ISPF
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    Post subject: How to STRIP blanks from the variable from ISPF SKELETON
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: 401
Location: Mumbai

PostPosted: Wed Feb 11, 2009 5:42 am    Post subject: Reply to: How to STRIP blanks from the variable from ISPF SK
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: 8593
Location: Back in jolly old England

PostPosted: Wed Feb 11, 2009 12:36 pm    Post subject:
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    Post subject: Reply to: How to STRIP blanks from the variable from ISPF SK
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    IBMMAINFRAMES.com Support Forums -> TSO/ISPF All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Can I traverse a STEM variable? chong.zhou CLIST & REXX 5 Wed May 31, 2017 3:54 pm
No new posts Converting Variable block file to Fix... bhavana yalavarthi DFSORT/ICETOOL 10 Tue May 16, 2017 2:20 pm
No new posts Getting error while opening a variabl... apandey1 COBOL Programming 5 Fri May 05, 2017 12:22 pm
No new posts Customizing the ISPF HILITE Command Pedro TSO/ISPF 3 Fri Mar 03, 2017 11:49 pm
No new posts Writing on to GSAM variable length rohanthengal JCL & VSAM 6 Fri Mar 03, 2017 7:46 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us