Pass stem variables to external subroutine



IBM's Command List programming language & Restructured Extended Executor

Pass stem variables to external subroutine

Postby atodpquery » Fri Apr 24, 2009 10:22 am

I've tested passing stem variables to external subroutines and I can't get the value inside the subroutine. I wonder if there's errors in my code or if you can't pass stem variables to external subroutines.
atodpquery
 
Posts: 31
Joined: Sat Nov 15, 2008 3:40 pm
Has thanked: 0 time
Been thanked: 0 time

Re: Pass stem variables to external subroutine

Postby dick scherrer » Sat Apr 25, 2009 1:44 am

Hello,

Suggest you post the problem code. . .

It may help someone help you.
Hope this helps,
d.sch.
User avatar
dick scherrer
Global moderator
 
Posts: 6268
Joined: Sat Jun 09, 2007 8:58 am
Has thanked: 3 times
Been thanked: 93 times

Re: Pass stem variables to external subroutine

Postby atodpquery » Fri May 01, 2009 4:07 pm

j = 0
drop sample.
str = 'aa bb cc dd ee'
do j = 1 to words(str)
sample.j = word(str,j)
end
rc = abc(sample. resaon_cd)

......

ABC procedure
argument sample. reason-cd
do j = 1 to sample.0
say sample.j
end

and I got the value from sample.j is sample.j instead of the value I store in the calling rexx program.
atodpquery
 
Posts: 31
Joined: Sat Nov 15, 2008 3:40 pm
Has thanked: 0 time
Been thanked: 0 time

Re: Pass stem variables to external subroutine

Postby expat » Mon May 04, 2009 4:40 pm

What does it say in the manual for passing stem variables to external routines ?
expat
 
Posts: 459
Joined: Sat Jun 09, 2007 3:21 pm
Has thanked: 0 time
Been thanked: 8 times


Return to CLIST & REXX

 


  • Related topics
    Replies
    Views
    Last post