The CA File Master Plus "UC" line command corrupts packed fields.

Document ID : KB000006458
Last Modified Date : 14/02/2018
Show Technical Document Details
Issue:

The CA File Master Plus "UC" line command corrupts packed fields.

Cause:

I edit CUSTFILE with File Master. I use CREATE subcommand to create a sequential file names VISA1. I issue UC line command on records 1 and 11 while in CHAR mode. I CREATE file VISA2. I run a File Master Compare on the two files and notice that several fields do not match on the two records. I use File Master to view my two files. It looks like UC has corrupted packed fields in the records.

Resolution:

The user's guide states that if one doesn't set a BOUNDS the default is the entire record:

UC *

Changes the contents of a record to all uppercase within the boundaries set by the BOUNDS command. If no BOUNDS command was issued, the default is the entire record.

Note: In MF mode, the fields within the boundaries must be either all EBCDIC or all UTF-16.

<END>

If one puts in a bounds value first, i.e. BOUNDS 1 50, then puts a UC in a line that has lower case data in the packed fields and they will be untouched.