Guardian Procedure Calls Reference Manual (G06.25+)

Guardian Procedure Calls (P)
Guardian Procedure Calls Reference Manual522629-013
12-4
PACKEDIT Procedure
unpacked-length input
INT:value
specifies the length in bytes of
unpacked-line.
packed-line output
STRING .EXT:ref:*
is a string array that contains the line in packed format that is the outcome of the
conversion. The length of the packed line is returned in the
packed-length
parameter.
packed-limit input
INT:value
specifies the length in bytes of the string variable
packed-line.
packed-length output
INT .EXT:ref:1
returns the actual length in bytes of the value returned in
packed-line. If
packed-line is not large enough to contain the value that is the output of the
conversion,
packed-length returns a value of -1.
full-length input
INT:value
if present and not equal to 0, specifies that all trailing space characters (if any) in
the line being processed should be retained in the output line image. Otherwise,
trailing space characters are discarded.
Considerations
If a line contains few sequences of blank characters, it might require more bytes in
packed format than in unpacked format. To provide for this, you should specify a
value for
packed-limit that is at least 8% greater than unpacked-length.
Related Programming Manual
For programming information about the PACKEDIT procedure, and for a description of
the EDIT packed line format, refer to the
Guardian Programmer’s Guide.