Okay, I have an issue where i have 2 files that have most of the same field names. I have these files record defined in an Ext DS...
D RC727P E DS Extname(BLAN727P) prefix(A)
D RC728P E DS Extname(BLAN728P) prefix(B)
This fixed the compile issue and now I'm running the program as seeing not an error, but bad data. I know I didn't have to us the PREFIX on both files, but I did just for my doing. The Ext DS names...RC727P or RC728P will be used in a CALLP later in the program. When I get to the CALLP logic, the RC727P value is blanks/packed blanks...
c call 'BLWO001R'
c parm 'BLAN727P' blwfil
c parm RC727P
c parm H@CDT
I can't change the CALLP as this a existing program working great at a client's site. I'm just added these new files into a current process. I can't change the name of the fields in the files, so I have to see why adding the PREFIX is causing an error in the data for the CALLP. There are 36 fields names that are the same across these (2) files. I have thought using the ExtFld, but it's way to many fields and I don't think I should have to. I really don't understand why the PREFIX doesn't work.
Any ideas?
D RC727P E DS Extname(BLAN727P) prefix(A)
D RC728P E DS Extname(BLAN728P) prefix(B)
This fixed the compile issue and now I'm running the program as seeing not an error, but bad data. I know I didn't have to us the PREFIX on both files, but I did just for my doing. The Ext DS names...RC727P or RC728P will be used in a CALLP later in the program. When I get to the CALLP logic, the RC727P value is blanks/packed blanks...
c call 'BLWO001R'
c parm 'BLAN727P' blwfil
c parm RC727P
c parm H@CDT
I can't change the CALLP as this a existing program working great at a client's site. I'm just added these new files into a current process. I can't change the name of the fields in the files, so I have to see why adding the PREFIX is causing an error in the data for the CALLP. There are 36 fields names that are the same across these (2) files. I have thought using the ExtFld, but it's way to many fields and I don't think I should have to. I really don't understand why the PREFIX doesn't work.
Any ideas?


Comment