370 pts.
 Printer file query
Hi Guys, can we able to define variable detail heading in printer file.

For an example..lets take one Employee table which has Employee name, Age and Country. I want to set country as variable in printer file and output should be one column for each country find.

like this....

Employee Name Age India USA UK

Ali                     24     Y     N    N

Martin                25     N     Y    N

Tom                   26    N      N    Y  

I know  use of indicators but if I do not know the countries list ( may be 20 are there), can we have other method other than indicators



Software/Hardware used:
AS/400
ASKED: January 27, 2010  1:40 PM
UPDATED: January 27, 2010  5:14 PM

Answer Wiki:
Just make you headings a variable as you do your detail lines. In your *INZSR, read in all the values in your table and populate the fields to print in the headings
Last Wiki Answer Submitted:  January 27, 2010  2:57 pm  by  CharlieBrowne   32,945 pts.
All Answer Wiki Contributors:  CharlieBrowne   32,945 pts.
To see all answers submitted to the Answer Wiki: View Answer History.


Discuss This Question:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _


 

thats what I tought after just writing this query. Thanks Charlie..

any other solutiuons invited…

 370 pts.