Reformatting data elements
During ACCEPT,
APPLY, and RESTORE processing, SMP/E must sometimes reformat a data
element to be make it compatible with the library into which it is
to be installed. This can happen when the data element is being installed
from:
- a variable-length record format to a fixed-length record format or from a fixed-length record format to a variable-length record format.
- a fixed-length record format to a fixed-length record format and the input and output record lengths are not equal.
- a variable-length record format to a variable-length record format and the input record length is greater than the output record length.
SMP/E uses these rules when reformatting:
- If the input record length is greater than the output record length, and SMP/E can truncate the record to the correct length by removing only trailing blanks, then SMP/E will reformat the record. Otherwise, SMP/E will issue an error message and terminate the reformatting operation.
- If the input record length is less than the output record length and the output record format is fixed, the record will be padded with blanks.
- Sequence numbers (if present) will be preserved.
Input format | Output format | Condition | Action |
---|---|---|---|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
VS |
|
|
|
VBS |
|
|
|
|
|
|
|
Legend:
|
At the end of processing, SMP/E issues a message indicating whether the data element has been replaced successfully.