Printer file query

370 pts.
Tags:
AS/400 Reports
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

Answer Wiki

Thanks. We'll let you know when a new response is added.

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

Discuss This Question: 1  Reply

 
There was an error processing your information. Please try again later.
Thanks. We'll let you know when a new response is added.
Send me notifications when members answer or reply to this question.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy
  • Alicsc
    thats what I tought after just writing this query. Thanks Charlie.. any other solutiuons invited...
    370 pointsBadges:
    report

Forgot Password

No problem! Submit your e-mail address below. We'll send you an e-mail containing your password.

Your password has been sent to:

To follow this tag...

There was an error processing your information. Please try again later.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Thanks! We'll email you when relevant content is added and updated.

Following