HiLMAs reference
Back

Input/Output instructions

Next

INPUT

INPUT string1[,string2,string3,...][,SEP=character]

 

Description

INPUT statement accept a line of data from user's terminal (CICS, TSO or CMS) or from standard input (MVS or VSE):
the line in input is parsed and its words are assigned to string1, string2, etc. If INPUT is used with only one string variable, obviously all typed words are put in the same string; see PARSE statement to know the right parsing rules applied.
The separator character is blank, if it is not changed by SEP=

Up to 20 variables can be used to do this parsing from the same user input line.

Note that numeric variables are not admitted: to input a number, first must be stored in a string, than can be converted in number with EDIT2NUM.

 

Parameter specifications

Parameter Name Mode Type coding Remark
1 string1 Output String C or X Strings are in Output because are filled by user
2 string2 Output String C or X  
3 string3 Output String C or X  
  up to 20 Input words  
  SEP='c'   String constant  

 

Examples

 


Back Start Next
SAY Top FOPEN