In your “F” specs of your program your would have
F Input IF……
F Output O…….
In a CL, you would have
OVRDBF INPUT TOFILE(&Lib/&file)
OVRDBF OUTPUT TOFILE(&Lib/&File)
You probably only need one of the overrides if you the other would pick up the correct file.
If both files are externally defined, then you would need to CRTDUPOBJ or a CPYF of one of them to a different filename so the program would complie.
If at least one of the files in internally defined, you could just do the OVRDBF to that file and let the system library list pick up the other.
PGMBOB With another view.
The new CHAR field in in th record with the numeric amount field.
Use the one file as update primary, convert the NUMERIC to CHAR and Update.
Before %editc(numfield:’X’) giving a character value we would use SUBRNO.
SUBRNO would be an input / output program defined file.
Output the NUMERIC with any editing required like it was a print line.
Read IN the character value.
Like writing out to a buffer and reading it in.