Highlighted
Absent Member.
Absent Member.
239 views

[archive] Picture Maximum value

[Migrated content. Thread originally posted on 08 July 2008]

I have a file defined as follows:
01 Key.
03 C1 pic 9 (6).
03 C2 pic 9 (3). Maximum value [999]

how can increase the values contained in C2 in a transparent manner?
0 Likes
2 Replies
Highlighted
Absent Member.
Absent Member.

RE: [archive] Picture Maximum value

it is possible to convert a field COMP-2 (DISPLAY) in a field COMP ..... without converting the file?
0 Likes
Highlighted
Absent Member.
Absent Member.

RE: [archive] Picture Maximum value

You can change the picture to allow for a larger number whilst not changing the actual characters required to store the field. a pic 999 takes three characters, a pic 9(6) comp-x also takes three characters.

This means only that the file does not change in size, nor does the key if the field you are changing is part of a key.

The field contents however are different, and you will have to recompile all your programs that reference that field, and you will need to convert the field on the file.
0 Likes
The opinions expressed above are the personal opinions of the authors, not of Micro Focus. By using this site, you accept the Terms of Use and Rules of Participation. Certain versions of content ("Material") accessible here may contain branding from Hewlett-Packard Company (now HP Inc.) and Hewlett Packard Enterprise Company. As of September 1, 2017, the Material is now offered by Micro Focus, a separately owned and operated company. Any reference to the HP and Hewlett Packard Enterprise/HPE marks is historical in nature, and the HP and Hewlett Packard Enterprise/HPE marks are the property of their respective owners.