Hi,
I have to move each character in a string to an array.
In RPG, I can very well use the command MOVEA for this purpose but I don’t know exact command in free format RPG.
Can anyone help me on this regards?
Software/Hardware used:
ASKED:
February 12, 2009 7:25 AM
UPDATED:
March 17, 2009 4:01 PM
OR
D ds
D Text 10
D Arr3 1 dim(10) overlay(text:1)
D Arr1 s 1 dim(10)
D Arr2 s 1 dim(10)
D Txt1 s 10
/free
// Move one array to another
Arr2 = Arr1; Arr2 will be the same as Arr1
// Move a single string to array elements
Text = Txt1; // Arr3 will contain the original chars
// Move an array to a single string
Txt1 = Text; Txt1 will contain all the elements of Arr3