kruiser02
Programmer
- Nov 21, 2008
- 5
Hello,
I have two STRING operations I want to accomplish:
1. Depending upon the value in a field, say W-COUNT, I want to perform a Paragraph named "MY-PARA-(W-COUNT)". e.g., if the value of W-COUNT is 01, I want to perform MY-PARA-01 and so on.
I know I can string the para name into a variable, but how do I perform it then?
2. Based on the length of a field, I want to move that into a working storage variable of same length.
I have Working storage variables defined as VAR1, VAR2 upto VAR18.
I have the length of the field in W-LEN. Apart from using an EVALUATE statement with 18 WHEN statements, is there a more efficient way to move my input data into appropriate VAR*?
Thanks for your help!
I have two STRING operations I want to accomplish:
1. Depending upon the value in a field, say W-COUNT, I want to perform a Paragraph named "MY-PARA-(W-COUNT)". e.g., if the value of W-COUNT is 01, I want to perform MY-PARA-01 and so on.
I know I can string the para name into a variable, but how do I perform it then?
2. Based on the length of a field, I want to move that into a working storage variable of same length.
I have Working storage variables defined as VAR1, VAR2 upto VAR18.
I have the length of the field in W-LEN. Apart from using an EVALUATE statement with 18 WHEN statements, is there a more efficient way to move my input data into appropriate VAR*?
Thanks for your help!