how create a printer file in AS400
180 pts.
0
Q:
how create a printer file in AS400
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: Oct 22 2009  5:41 PM GMT
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
0
180 pts.
0
A:
 RATE THIS ANSWER
0
Click to Vote:
  •   0
  •  0
  • AddThis Social Bookmark Button
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.
Last Answered: Oct 23 2009  3:48 PM GMT by Sylvana   180 pts.
Latest Contributors: TomLiotta   7990 pts., Philpl1jb   24570 pts., CharlieBrowne   6540 pts.
0
0
Discuss This Answer:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _



_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

TomLiotta   7990 pts.  |   Oct 26 2009  1:03AM GMT

…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

 

Sylvana   180 pts.  |   Nov 6 2009  9:52PM GMT

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.

 

Splat   1050 pts.  |   Nov 10 2009  3:42PM GMT

Printer files are output only - doing a READ isn’t going to do you much good.

 
0