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
 
REXX Stem Variables

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

New User


Joined: 03 Nov 2008
Posts: 42
Location: Pune

PostPosted: Tue Jul 07, 2009 5:21 pm    Post subject: REXX Stem Variables
Reply with quote

/*REXX*/
DA. = " " ;
DA.1 = 1
DA.2 = 2
DA.3 = 3
SA = DA.0
SAY SA

I am expecting 3 as the output but i am not getting it can you please tell me whats wrong in the code.
Back to top
View user's profile Send private message

expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8657
Location: Back in jolly old England

PostPosted: Tue Jul 07, 2009 5:23 pm    Post subject:
Reply with quote

Where did you set a value for DA.0

It is only set automatically using EXECIO
Back to top
View user's profile Send private message
superk

Moderator Team Head


Joined: 26 Apr 2004
Posts: 4650
Location: Raleigh, NC, USA

PostPosted: Tue Jul 07, 2009 5:24 pm    Post subject: Reply to: REXX Stem Variables
Reply with quote

Tell us why you would expect 3 for the output. There's nothing wrong with the code.
Back to top
View user's profile Send private message
Garry Carroll

Senior Member


Joined: 08 May 2006
Posts: 1005
Location: Dublin, Ireland / Edinburgh, Scotland

PostPosted: Tue Jul 07, 2009 5:30 pm    Post subject:
Reply with quote

The 'zero-th' stem variable is not populated by assigning values to any of the other stem variables. You should update DA.0 with whatever value you want - it's just another (stem) variable.

Garry
Back to top
View user's profile Send private message
d_pansare

New User


Joined: 25 Apr 2009
Posts: 20
Location: Pune

PostPosted: Tue Jul 07, 2009 8:46 pm    Post subject:
Reply with quote

0 the elemet would be populated only if you read the file on stem variable.. and yeah there is catch.. you got to move the total number of records in 0 th element before you write the file..

So it is better to use 0 th element only while dealing with files....
Back to top
View user's profile Send private message
superk

Moderator Team Head


Joined: 26 Apr 2004
Posts: 4650
Location: Raleigh, NC, USA

PostPosted: Tue Jul 07, 2009 8:48 pm    Post subject:
Reply with quote

d_pansare wrote:
you got to move the total number of records in 0 th element before you write the file..


That's not true.
Back to top
View user's profile Send private message
dbzTHEdinosauer

Global Moderator


Joined: 20 Oct 2006
Posts: 6970
Location: porcelain throne

PostPosted: Tue Jul 07, 2009 9:06 pm    Post subject:
Reply with quote

d_pansare wrote:
So it is better to use 0 th element only while dealing with files....


this is also BS.
Back to top
View user's profile Send private message
Pedro

Senior Member


Joined: 01 Sep 2006
Posts: 2104
Location: Silicon Valley

PostPosted: Tue Jul 07, 2009 9:10 pm    Post subject: Reply to: REXX Stem Variables
Reply with quote

Quote:
It is only set automatically using EXECIO


Not true. Other system functions, such as GETMSG or OUTTRAP will also set the zero-eth element. But it is far from universal.
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. GDG gen check using REXX raghuraman123 CLIST & REXX 6 Wed Apr 18, 2018 9:18 pm
No new posts How to control Panel Attributes throu... rsshanmugam CLIST & REXX 3 Mon Feb 26, 2018 9:51 pm
No new posts Find a string in PS file opened in br... mukkas CLIST & REXX 3 Sat Feb 24, 2018 2:15 pm
This topic is locked: you cannot edit posts or make replies. how to get Job information from IOF u... rsshanmugam CLIST & REXX 13 Mon Feb 05, 2018 4:22 pm
No new posts Using indexed variables in EZPLUS SRIDEVI TANTRY CA Products 1 Thu Feb 01, 2018 12:15 pm

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