djmordigal
Technical User
Hello all,
I'm new to this forum, so forgive me if this question has already been asked or if I'm not posting in the right place.
I'm a student on co-op, and new to the REXX language, so I'm experimenting with some different things. One of these things is arrays.
On my computer, I have a REXX interpreter that runs the following code just fine:
[tt]
SAY "Enter a value"; PULL value;
array.1 = value;
array.2 = value*2;
array.3 = value*3;
DO i=1 TO 3
SAY array.i;
END
[/tt]
And say, if the user puts in 2, outputs:
[tt]
2
4
6
[/tt]
as expected.
But when I load the same file onto the mainframe and run it under NetView, it's reaches the line that says [tt]SAY array.i[/tt] and complains [tt]"Invalid character in program."[/tt] I'm thinking it's an issue with different versions of the REXX interpreter on my computer vs. the mainframe I'm running it on?
Has anyone else encountered this issue or know of ways to get around it/other ways to treat an array in REXX?
I'm new to this forum, so forgive me if this question has already been asked or if I'm not posting in the right place.
I'm a student on co-op, and new to the REXX language, so I'm experimenting with some different things. One of these things is arrays.
On my computer, I have a REXX interpreter that runs the following code just fine:
[tt]
SAY "Enter a value"; PULL value;
array.1 = value;
array.2 = value*2;
array.3 = value*3;
DO i=1 TO 3
SAY array.i;
END
[/tt]
And say, if the user puts in 2, outputs:
[tt]
2
4
6
[/tt]
as expected.
But when I load the same file onto the mainframe and run it under NetView, it's reaches the line that says [tt]SAY array.i[/tt] and complains [tt]"Invalid character in program."[/tt] I'm thinking it's an issue with different versions of the REXX interpreter on my computer vs. the mainframe I'm running it on?
Has anyone else encountered this issue or know of ways to get around it/other ways to treat an array in REXX?