Skip to main content

[archive] Picture Maximum value

  • July 8, 2008
  • 2 replies
  • 0 views

[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?

2 replies

[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?
it is possible to convert a field COMP-2 (DISPLAY) in a field COMP ..... without converting the file?

[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?
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.