how create a printer file in AS400

185 pts.
Tags:
AS/400 Printer File
AS/400 printing
CRTPRTF
HI,

The message shows "Mistakes in the DDS not allowed with the specified GENLVL, one has not found the device of printer PRT01. File PRTF1 has not been created in the library HIPTSTMAP1"

  Obviously use CRTPRTF. Probably another way exists to create the file of printer.

THANKS.



Software/Hardware used:
AS400
ASKED: October 22, 2009  5:41 PM
UPDATED: November 10, 2009  3:42 PM

Answer Wiki

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

If you are using DDS to do the CRTPRTF and get an error, the compile listing should have detail information regarding your error.
What is the contents of the line that has the error?

———-
Right, you want to find the spool file (WRKSPLF) and display it (5) and go to the bottom and start working upwards you will find a listing of errors and as you go up you will find the code with the errors often immediately after the line in error. Each error of level 20 or above must be fixed before you can get a good compile.

Phil

================================================

If you’re using DDS to create the printer file, open the DDS member in SEU and press <F15=Browse/Copy options>. Enter 2=Spool file — press [enter].

If you’re compiling in batch, the compile listing should be in a split pane at the bottom.

In the SEU entry field in the bottom pane, type “*err” (no quotes) and press <F16=Search>. Whatever errors are in the compiler listing should be found, one at a time as you press <F16> over again.

Each error should show a message in the message line at the bottom of the screen. You can position your cursor down there and press <F1=Help> for more detailed explanation.

Fix any errors and recompile.

(If you’re not using SEU but a version of WDSC instead, then a somewhat different approach might be better.)

Tom

&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&

Hi,
thanks everyone, I don t considered the dspf with records to create after a prtf.
Now everything is ok.

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
    ...one has not found the device of printer PRT01. BTW, the issue can probably be ignored by you even though it possibly also ought to be addressed at some point. Set the CRTPRTF to use GENLVL(20) and the discrepancy should be ignored by the command during compilation. If PRT01 doesn't exist as a printer device, you can always create it. It probably won't ever be associated with a physical printer, but it will act as a model devise to create your printer files over. Tom
    125,585 pointsBadges:
    report
  • Sylvana
    HI EVERYBODY, how make a write of printer file ? is it correct this: WRITE HIPM01R-RECORD FORMAT IS 'HIPM01R'. READ HIPM01 FORMAT IS 'HIPM01R'. MOVE M1COD TO M1COD-DSP. MOVE M1COD-DSP TO R1COD-PRT. MOVE M1DESC TO M1DESC-DSP. MOVE M1DESC-DSP TO R1DESC-PRT. WRITE HIPR01R-RECORD FROM PRINTER-LINE.
    185 pointsBadges:
    report
  • Splat
    Printer files are output only - doing a READ isn't going to do you much good.
    6,255 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