Rational Developer for System z
Enterprise PL/I for z/OS, Version 3.8, Language Reference Manual

GET edit-directed

For more information about the GET statement, see GET statement.

Data in the stream is a continuous string of characters and graphics with no delimiters between successive values. The number of characters for each data value is specified by a format item in the format list. The characters are interpreted according to the associated format item. When the data list has been processed, execution of the GET statement stops and any remaining format items are not processed.

Each data-format item specifies the number of characters or graphics to be associated with the data-list item and how to interpret the data value. The data value is assigned to the associated data-list item, with any necessary conversion.

Fixed-point binary and floating-point binary data values must always be represented in the input stream with their values expressed in decimal digits. The F-, P-, and E-format items can then be used to access them, and the values are converted to binary representation upon assignment.

All blanks and quotation marks are treated as characters in the stream. Strings should not be enclosed in quotation marks. Quotation marks should not be doubled. The letter B should not be used to identify bit strings or G to identify graphic strings. If characters in the stream cannot be interpreted in the manner specified, the CONVERSION condition is raised.

Example:

  get edit (Name, Data, Salary)(A(N), X(2), A(6), F(6,2));

This example specifies the following:


Terms of use | Feedback

This information center is powered by Eclipse technology. (http://www.eclipse.org)