IBM Print Transforms from AFP for Infoprint Server for z/OS
Previous topic | Next topic | Contents | Index | Contact z/OS | Library | PDF


Examples -- afpxps

IBM Print Transforms from AFP for Infoprint Server for z/OS
G325-2634-02

Examples -- afpxps

Transform a UNIX AFP file, specifying a transform class and output file
To transform the UNIX AFP file myfile.afp into an output PostScript file called myfile.ps, using the us transform class, enter:
afpxps -c us -o myfile.ps myfile.afp
Transform an AFP MVS™ data set, specifying a form definition
To transform the AFP MVS data set USERX.AFP(MYFILE) into an output PostScript file called myfile.ps, using the form definition F1CP0110, enter:
afpxps -j "form-def=f1cp0110" -o myfile.ps "//'USERX.AFP(MYFILE)'"
Transform a UNIX AFP file, specifying a form definition and a resource library
To transform the a UNIX AFP file myfile.afp into an output PostScript file called myfile.ps, using the form definition F1CP0110 that contains references to user-supplied AFP resources, enter this command on one line:
afpxps -j "form-def=f1cp0110 res-lib={lib1.pseglib lib3.private}"
       -o myfile.ps myfile.afp
Transform and print an AFP MVS data set, specifying a form definition and a resource library
To transform the AFP MVS data set PROD.AFPOUT(JOB1) into a PostScript file, using the form definition F1CP0110 that contains references to user-supplied AFP resources, and print the output, enter this command on one line:
afpxps -j "form-def=f1cp0110 res-lib={lib1.pseglib lib3.private}"
			"//'PROD.AFPOUT(JOB1)'" | lp -d myprinter
Transform a job using redirection
To transform the AFP file input.afp into the PostScript output file called output.ps, enter:
afpxps < input.afp > output.ps
Note:
You can use redirection operators only with UNIX files.
Transform multiple files and concatenate the output
To transform the UNIX AFP files input.01.afp, input.02.afp, ... input.xx.afp into one PostScript output file called output.ps, enter:
afpxps -o output.ps input.01.afp input.02.afp ... input.xx.afp
Transform a UNIX AFP file to an MVS data set
To transform the line data file input.line into an MVS PostScript output data set called hlq.OUTPUT.PS(MYDOC), enter:
afpxps -j doc-format=line -o "//'hlq.OUTPUT.PS(MYDOC)'" input.line
Transform an AFP MVS data set, writing the output to a UNIX file
To transform the AFP MVS data set hlq.INPUT.LINE(MYDOC), where hlq is your user ID, into a PostScript output file called output.ps, enter:
afpxps -o output.ps "//'hlq.INPUT.LINE(MYDOC)'"
Transform line data, specifying a form definition and a page definition
To transform the line data file myfile.line that contains ANSI carriage control characters into an output PostScript file called myfile.ps, using the form definition F1CP0110 and page definition P1P06362, enter this command on one line:
afpxps -j "form-def=f1cp0110 page-def=p1p06362 c-c-t=a doc-format=line"
			-o myfile.ps myfile.line
Transform line data, specifying a page definition and fonts
To transform the line data file myfile.line containing machine carriage control characters and table reference characters into an output PostScript file called myfile.ps, using the page definition P1P06362, enter this command on one line:
afpxps -j "page-def=p1p06362 c-c-t=m t-r-c=yes chars={60D8 60D0}" 
       -o myfile.ps myfile.line
Transform line data, specifying a form definition and a page definition
To transform the line data file myfile.line that contains ANSI carriage control characters into an output PostScript file called myfile.ps, using the form definition F1CP0110 and page definition P1P06362, enter this command on one line:
afpxps -j "form-def=f1cp0110 page-def=p1p06362 c-c-t=a doc-format=line"
		   -o myfile.ps myfile.line
Transform line data and receive MVS return codes
To transform the line data file myfile.line into a PostScript file and write the result to a file called myfile.ps and receive MVS return codes (0, 4, 8), enter:
AOP_MVS_RETURN_CODES=YES afpxps -o myfile.ps myfile.line

MVS return codes indicate whether the transform was successful (0), a transform warning occurred (4), or a transform error occurred (8).

Transform an AFP document with TrueType fonts in multiple font directories
To transform an AFP document with TrueType fonts that are found in external resource directories:
afpxps -j "resource-directories={/usr/lpp/fontpath1 /usr/lpp/fontpath2}" -o myfile.ps myfile.afp

Go to the previous page Go to the next page




Copyright IBM Corporation 1990, 2014