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

unble move & print the wild cards in the varialbe


IBM Mainframe Forums -> CLIST & REXX
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
nkothako

Active User


Joined: 26 Nov 2008
Posts: 125
Location: chennai

PostPosted: Mon Feb 23, 2009 1:31 pm
Reply with quote

unble move & print the wild cards in the varialbe

Code:
ex : IF JH = ' '  THEN  JH = '%%.'                                                   

say JH

output is printing as : JH only but why its not printing %%.

is it possible to move wild cards into varialbe
Back to top
View user's profile Send private message
enrico-sorichetti

Superior Member


Joined: 14 Mar 2007
Posts: 10873
Location: italy

PostPosted: Mon Feb 23, 2009 1:59 pm
Reply with quote

post a more meaningful snippet and You might get more explanations

even if Your sample does not make sense,
the analysis for the two lines posted is...

the JH variable is not initialized,

it will not match the comparison with one blank

it will not be set to the new value

the display of an un-initialized variable will just display its name

analysis confirmed by testing



WRONG code
Code:
/* rexx */
Trace "O"
if JH = ' ' then JH = '%%.'
say JH
exit


formally correct code ( VARIABLES INITIALIZED)
Code:
/* rexx */
Trace "O"
JH = ' '
if JH = ' ' then JH = '%%.'
say JH
exit
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 -> CLIST & REXX

 


Similar Topics
Topic Forum Replies
No new posts JCL sortcard to print only the records DFSORT/ICETOOL 11
No new posts COBOL - Move S9(11)v9(7) COMP-3 to -(... COBOL Programming 5
No new posts How to move the first field of each r... DFSORT/ICETOOL 5
No new posts is there a way to print time in HH:MM... SYNCSORT 12
No new posts Print out all lines with 'IBM' compil... CLIST & REXX 8
Search our Forums:

Back to Top