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
 

 

unble move & print the wild cards in the varialbe

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> CLIST & REXX
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    Post subject: unble move & print the wild cards in the varialbe
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

Global Moderator


Joined: 14 Mar 2007
Posts: 10277
Location: italy

PostPosted: Mon Feb 23, 2009 1:59 pm    Post subject: Reply to: unble move & print the wild cards in the vari
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    IBMMAINFRAMES.com Support Forums -> CLIST & REXX All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts DB2 9.1.0 not move values to Host-Var... Miguel Fernandez DB2 8 Wed Jan 25, 2017 8:24 pm
No new posts DB2 9.1.0 not move values to Host-Var... Miguel Fernandez DB2 0 Wed Jan 25, 2017 8:23 pm
No new posts DB2 9.1.0 not move values to Host-Var... Miguel Fernandez DB2 0 Wed Jan 25, 2017 8:21 pm
This topic is locked: you cannot edit posts or make replies. How to move a long alphanumeric data ... lind sh COBOL Programming 8 Mon Dec 05, 2016 7:51 pm
No new posts Protection Exception while move 0 to ... Kevin Vaz CICS 10 Tue Oct 18, 2016 4:19 pm


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