Page 1 of 1

Pass stem variables to external subroutine

PostPosted: Fri Apr 24, 2009 10:22 am
by atodpquery
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.

Re: Pass stem variables to external subroutine

PostPosted: Sat Apr 25, 2009 1:44 am
by dick scherrer
Hello,

Suggest you post the problem code. . .

It may help someone help you.

Re: Pass stem variables to external subroutine

PostPosted: Fri May 01, 2009 4:07 pm
by atodpquery
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.

Re: Pass stem variables to external subroutine

PostPosted: Mon May 04, 2009 4:40 pm
by expat
What does it say in the manual for passing stem variables to external routines ?