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

To retain leading spaces in panel input.


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

New User


Joined: 22 Jun 2007
Posts: 42
Location: Chennai

PostPosted: Tue Aug 11, 2009 5:02 pm
Reply with quote

In panel programming, I have input string with leading spaces.
But while accepting the data, it's STRIPing the leading spaces. Is there any way to retain the leading spaces??
Back to top
View user's profile Send private message
expat

Global Moderator


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

PostPosted: Tue Aug 11, 2009 5:08 pm
Reply with quote

Pretty sure that you can do it in the panel definitions but I just can't be asked to look for you.

Once the panel has been closed, you could code in the REXX program
Code:

Variable = Right(Variable,length)
Back to top
View user's profile Send private message
ayansau

New User


Joined: 22 Jun 2007
Posts: 42
Location: Chennai

PostPosted: Tue Aug 11, 2009 5:27 pm
Reply with quote

Thanks a lot..
Back to top
View user's profile Send private message
Marso

REXX Moderator


Joined: 13 Mar 2006
Posts: 1353
Location: Israel

PostPosted: Tue Aug 11, 2009 7:50 pm
Reply with quote

You have to add JUST(ASIS) to the attribute used for your input string:
Code:
)ATTR DEFAULT
  ~ TYPE(INPUT) INTENS(HIGH) JUST(ASIS)
)BODY
Name: ~Name1                  $
)END
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 TRIM everything from input, output co... DFSORT/ICETOOL 1
No new posts Extracting Variable decimal numbers f... DFSORT/ICETOOL 17
No new posts Execute secondary panel of sdsf with ... CLIST & REXX 1
No new posts Keep leading zero(s) after convert fl... SYNCSORT 7
No new posts force tablespace using LISTDEF input DB2 1
Search our Forums:

Back to Top