Product Site

9.6. Parsing Instructions Summary

All parsing instructions assign parts of the source string to the variables named in the template. The following table summarizes where the source string comes from.
Table 9.1. Parsing Source Strings
InstructionWhere the source string comes from
ARG Arguments you list when you call the program or arguments in the call to a subroutine or function.
PARSE ARG Arguments you list when you call the program or arguments in the call to a subroutine or function.
PARSE LINEINNext line in the default input stream.
PULL The string at the head of the external data queue. (If the queue is empty, it uses default input, typically the terminal.)
PARSE PULL The string at the head of the external data queue. (If the queue is empty, it uses default input, typically the terminal.)
PARSE SOURCESystem-supplied string giving information about the executing program.
PARSE VALUEExpression between the keywords VALUE and WITH in the instruction.
PARSE VAR nameParses the value of name.
PARSE VERSIONSystem-supplied string specifying the language, language level, and (three-word) date.