as/400 printer files

1150 pts.
Tags:
AS/400 File Sharing
AS/400 File Transfer
iSeries V6R1
Can i change a *PRTF object into a PF so that later i want to send the data to a text file?

Software/Hardware used:
IBMi,V6R1

Answer Wiki

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

You can never change an object type.
This question is similiar to another one that you asked and that one has been answered.

Discuss This Question: 3  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
    If you create a generic printer file:
    CRTPRTF FILE( mylib/MYPRTF )
    ...you can also create a generic PF:
    CRTPF FILE( mylib/MYGENPF ) RCDLEN(133) TEXT('Sample print-to-text')
    Code your RPG to do generic printer output rather than using record formats with defined fields and attributes. Then:
    OVRPRTF FILE( MYPRTF ) TOFILE( mylib/MYGENPF )
    CALL MYRPGPGM
    DLTOVR ...
    Your printed output should end up in MYGENPF. That's part of what "device independence" is all about. Note that you can't expect any of the advantages of a truly externally-described printer file. There are other techniques that are more complex but provide more flexibility such as using SPECIAL files. The OVRPRTF probably is all you need. Tom
    125,585 pointsBadges:
    report
  • philpl1jb
    The CPYSPLF will allow you to copy a spool file to a physical file. Phil
    50,605 pointsBadges:
    report
  • TomLiotta
    The CPYSPLF will allow you to copy a spool file to a physical file. Sure, but isn't it more fun the other way? Tom
    125,585 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