Specifies the number of characters per line in the input text file.
This is used in conjunction with the ps parameter to
determine an appropriate font size for the output file
Specifies the number of lines per page in the input text file.
This is used in conjunction with the ls parameter to
determine an appropriate font size for the output file
specifies a maximum number of lines per page. This is used to
allocate memory to store individual pages during processing. exceeding
this value causes a "Array subscript out of range" error.
This defaults to the value of the ps parameter.
specifies the maximum number of pages that can be processed from a
single
text file. This is used to allocate an array of 8-byte numerics--1 per
page--to retain the offsets of each page. The default is 10,000 pages.
Specifies the character set to use for output. All output is
generated in the host platform's native character set. This parameter is
used
to choose the correct character for the left and right square brackets
("[", "]"), which are not always translated correctly when transferring
files between platforms (specifically between EBCDIC and ASCII). This
parameter can usually be left unspecified, unless the output file is
intended to be transferred between platforms (see Usage
Notes below). The following characters
sets are defined:
Specifies the number of characters in a "newline" on this platform.
The default is 2 for Windows ('0A0D'x), 2 for MVS (anticipating transfer
to windows
platform), and 1 for everything else ('0A'x, i.e. unix systems)
The source text file is paginated based on form-feed characters (unix,
windows platforms), or newpage line attribute (MVS platforms). If your
text file does not contain these characters, you will only get one page in
the resulting PDF (if not an error). If you are producing output in a
data _null_ step, the output mode should be set to
"print", as in
data _null_;
file 'my_output_file.txt' print;
Although the output file created by %SAS2PDF is made up of printable
characters, PDF is technically a binary format. Furthermore,
the exact offset of each page in the file is marked in the
cross-reference table, so any modification of the output file (by a
text editor, for example) that will change the number of bytes in the
output file will invalidate the cross-reference table and may make your
PDF document unreadable. For
convenience of debugging, the macro produces output in the native
character set of host platform. The charset and crlf parameters are provided to allow tune the file
output for cross-platform transfers in ASCII mode. If you are generating
and viewing your PDF documents on the same platform, these parameters can
be left unspecified.
Bugs
Only the first 200 characters of a single input line will be
presented in the PDF file, due to the limit of a SAS
character variable.
Some versions of Acrobat Reader will state that the generated output
files "has been damaged, but is being repaired", despite the fact that the
output files conform to the specifications provided in the PDF manual.
You can safely ignore this message.