Assign Values to varible with occurs



Unicenter CA-Easytrieve Plus Report Generator: CA's information retrieval and data management tool

Assign Values to varible with occurs

Postby masterchecho » Tue May 25, 2010 2:04 am

Hi all,
I need to assign a value to a variable with an occurs .
For Example : I have the following structure ,which represents a section of the layout of my output file

EMPTY-TRADE W 124 A
EMPTY-01 EMPTY-TRADE 2 A OCCURS 24
EMPTY-02 EMPTY-TRADE +48 2 A
EMPTY-03 EMPTY-TRADE +50 3 A OCCURS 2
EMPTY-03 EMPTY-TRADE +56 68 A

How can I assign the value 'XXX' to EMPTY-03 ??? in order to obtain an 'XXXXXX' in my output file.

Thanks a lot !
Checho.
masterchecho
 
Posts: 10
Joined: Tue May 25, 2010 1:49 am
Has thanked: 0 time
Been thanked: 0 time

Re: Assign Values to varible with occurs

Postby dick scherrer » Tue May 25, 2010 2:12 am

Hello and welcome to the forum,

Why is EMPTY-03 coded twice? Define another field that begins at +50 for a length of 6.

Write a loop to process the 24 EMPTY-01 array elements and set the 6-char field to 'XXXXXX'. Or define the loop to process with a 2-dimensional array.
Hope this helps,
d.sch.
User avatar
dick scherrer
Global moderator
 
Posts: 6268
Joined: Sat Jun 09, 2007 8:58 am
Has thanked: 3 times
Been thanked: 93 times


Return to CA-Easytrieve

 


  • Related topics
    Replies
    Views
    Last post