Example 2:

Publish the print output from print file PRT2.TXT and create a HTML document named PRT2.HTML with
carriage return/line feeds.

D:\HERCULES\PRTPUB D:\MVS\PRT\PRT2.TXT,D:\MVS\PRT\PRT2.HTML,,,,CRLF,HTML

Example 3:

Publish the print output from print file PRT00E.TXT and create a HTML file called PUBL.HTML with
carriage return / line feeds. The input file's size at the time of the previous run should be kept in file
PRT00E.SIZ. The polling interval to check the file size is 10 seconds. The maximum number of lines that
should be published is 1000.

@echo off

:LOOP

prtpub prt00e.txt,publ.html,prt00e.siz,10,1000,CRLF,HTML

if errorlevel 1 goto NOTDONE

echo PRINT FILE UPDATED

goto LOOP

:NOTDONE

echo ERROR - NO UPDATE DONE

goto LOOP

6.3.5 Sample Utility Output

With the exception of error messages (if any) the utility does not produce any screen output.

Part IV: Mainframe Utilities

Previous Page Next Page