PUT EDIT(CHAR_S,CHAR_CL,CHAR_CD) (A(10),P'ZZZZZZZZZ9', P'ZZZZZZZZZ9',P'ZZZZZZZZZ9',P'ZZZZZZZZZ9'); PUT SKIP(1);是什么意思,参数都是什么意思
时间: 2024-02-10 10:21:10 浏览: 14
PUT EDIT(CHAR_S,CHAR_CL,CHAR_CD) is a PL/1 statement that writes formatted data to a file. The parameters CHAR_S, CHAR_CL, and CHAR_CD are used to format the data being written to the file.
The first parameter, CHAR_S, is a character string that represents the start of the record.
The second parameter, CHAR_CL, is a character string that represents the class of the record.
The third parameter, CHAR_CD, is a character string that represents the code of the record.
The data being written to the file is specified in the parentheses after the PUT EDIT statement. In this case, the data being written is formatted using the following parameters:
- A(10): represents a character string with a length of 10 characters
- P'ZZZZZZZZZ9': represents a packed decimal number with a length of 10 digits, where the first 9 digits are used for the integer part and the last digit is used for the decimal part.
The PUT SKIP(1) statement is used to add a blank line between each record written to the file.
Overall, the code is writing formatted data to a file using a specific format specified by the PUT EDIT statement. The data being written to the file consists of a character string and a packed decimal number. The PUT SKIP statement is used to separate each record with a blank line.