Printer file

1420 pts.
Tags:
AS/400
AS/400 Printer File
RPG Program
Hi members, While declaring a printer file in RPG program, we will specify either INFDS(DSPTR) or OFLIND(*IN99). Can any one clarify the purpose and circumstances under which we specify these..Thanks!

Software/Hardware used:
AS400,RPG400,

Answer Wiki

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

Discuss This Question: 6  Replies

 
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
  • TomLiotta

    Yes, the RPG Language Reference manual tells you why you might use those keywords.

    Tom

    125,585 pointsBadges:
    report
  • philpl1jb

    ok ..

    INFDS(DSPTR) allows you to create a data structure in your program with lots of good stuff about your printer file .. see manual

    or OFLIND(*IN99)  this assigns the indicator 99 as the printer overflow indicator for this file.

     

    49,850 pointsBadges:
    report
  • Sai4AS400
    Hi Philip,when i use INFDS(DSPTR) RPG program,then is not throwing  even the header of a Printer file, but when i use OFLIND(*IN99) then it is alright. What might the reason..can you explain me
    1,420 pointsBadges:
    report
  • TomLiotta
    The INFDS() keyword has nothing to do with generating headers or overflow. It is completely unrelated. It is a file information data structure that provides your program information details about the file. Why would you want to use it for controlling a report header? -- Tom
    125,585 pointsBadges:
    report
  • philpl1jb

    Agree with Tom, I would rather suck a lemons, but

    - if you use INFDS(DSPTR) and your program has a data structure DSPTR the program should compile and run. 

    If the program uses IN99 to control the flow or the printer file or O spec's use indicator 99 then your program will be affected if you don't populate have *IN99 in the program.

    Please show us the data structure DSPTR

    But if you have O spec's .. please show us the Header O spec.

    49,850 pointsBadges:
    report
  • philpl1jb

    Well, where did my comment go...

    If you remove the INOF(99) but your program or printer file uses indicator 99 in the logic, you will have to make further changes.

    49,850 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