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
 
Beginner Level : Usage of SAY in REXX.

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> CLIST & REXX
View previous topic :: :: View next topic  
Author Message
Anuj Dhawan

Senior Member


Joined: 22 Apr 2006
Posts: 6258
Location: Mumbai, India

PostPosted: Wed Jul 30, 2008 5:43 pm    Post subject: Beginner Level : Usage of SAY in REXX.
Reply with quote

Hi,

REXX is still quite new for me, so this query- In below examples, where it's written "---> what's the need", what's the difference would be there in the output, of using below snippet without those & with these "extra" SAY statements ?
Code:
 
   SAY ''                                                                ---> what's the need
 SAY 'HOW MANY TIMES WOULD YOU LIKE ME TO GREET YOU?'                   
 /*  ASK USER  */                                                       
 PULL HOWMANY
 DO I = 1 TO HOWMANY                                                     
   SAY ''                                                                ---> what's the need
   SAY 'HI THERE'                                                       
 END                                                                     


Code:
X = 256                                   
Y = 8                                     
SAY ''                                     ---> what's the need
SAY 'X IS' X                               
SAY 'LEFTMOST CHARACTER OF X IS' LEFT(X, 1)
SAY ''                                     ---> what's the need
SAY 'Y IS' Y                               
SAY 'LENGTH OF Y IS' LENGTH(Y)             
SAY ''                                     ---> what's the need
SAY 'X DIVIDED BY Y IS' X/Y               

I used them with & w/o but same results were there. Actually I doubt it, dumb in me is not being able to find the difference I think, please guide..
Back to top
View user's profile Send private message

ofer71

Global Moderator


Joined: 27 Dec 2005
Posts: 2360
Location: Israel

PostPosted: Wed Jul 30, 2008 5:46 pm    Post subject:
Reply with quote

This is just for writing an empty line to your output device.

O.
Back to top
View user's profile Send private message
Anuj Dhawan

Senior Member


Joined: 22 Apr 2006
Posts: 6258
Location: Mumbai, India

PostPosted: Wed Jul 30, 2008 6:04 pm    Post subject:
Reply with quote

Hi O,

Goshh, I removed only the first SAY, so it didn't make any difference in the output on panel..

Thanks O.


PS. Before the above experiment (removing all the SAY in question) I was going to write..Yeah I thought the same, but then when I remove it, empty line should not be there. I've to repeat..
Quote:
dumb in me is not being able to find the difference
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 How to write Rexx program to size and... sreejeshcs CLIST & REXX 14 Thu Oct 12, 2017 7:26 am
This topic is locked: you cannot edit posts or make replies. Rexx to execute spool commands upendrasri CLIST & REXX 5 Wed Oct 04, 2017 6:54 am
This topic is locked: you cannot edit posts or make replies. Rexx to execute spool commands upendrasri CLIST & REXX 47 Fri Sep 29, 2017 1:08 pm
No new posts ejck thru rexx to multiple jobs insid... Susanta All Other Mainframe Topics 5 Tue Sep 19, 2017 1:39 pm
This topic is locked: you cannot edit posts or make replies. Extract all "IF" Statements... Adarsh Damodaran CLIST & REXX 1 Wed Sep 06, 2017 9:28 am

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