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: 10210
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
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
No new posts Cards mainframe developer requirement... capricorn Mainframe Jobs 0 Sun Sep 11, 2016 9:57 am
This topic is locked: you cannot edit posts or make replies. Alphanumeric to Numeric move on UNIX mistah kurtz COBOL Programming 16 Wed Jul 27, 2016 8:47 pm
No new posts Need information on COBOL MOVE CORRES... subratarec COBOL Programming 10 Tue Jun 28, 2016 10:38 pm


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