| Free Format Alternatives to MOVE |
|
|
|
Q. I've been trying to convert a series of RPG IV programs to free format, but I've been very frustrated, because free format doesn't support the MOVE operation. I don't want to switch back and forth between fixed format and free format (the result is ugly). What can I do? Is there an easy alternative? A. There are a number of alternatives to the MOVE-related operation codes, and therein lies the challenge in converting to free format. Which option you'll use depends upon the data types and sizes of the source field and the target field. Here's a table to get you started:
To replace MOVEA, at V5R3, you can use the %SUBARR function. For example: /Free %Subarr(Arrayname:50:5) = '10101'; /End-free |
Special pricing for the Glendora area. Book a 5-day onsite class for as little as USD $800/day. Get a price quote today. Ask for offer CA800.
5-day minimum, special terms apply.