Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist 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 MQ command in option 6 of ISPF! Vignesh Sid COBOL Programming 1 Tue Sep 26, 2017 6:01 pm
No new posts Conditional highlighting of rows in I... packerm CLIST & REXX 2 Thu Sep 21, 2017 6:50 pm
No new posts Moving values to a variable of copybo... Vignesh Sid COBOL Programming 6 Wed Sep 06, 2017 1:04 pm
No new posts Creating ISPF Screens with Scrname vi... Albireo20 TSO/ISPF 9 Tue Sep 05, 2017 4:24 pm
No new posts Updating the Trailer count in variabl... satheshbabur DFSORT/ICETOOL 6 Wed Aug 30, 2017 9:49 pm

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us