I have a program that uses a data base file for input/output and a dspf that also has a field with the same name as one in the data base file, but different length. How can rename that field and not the other fields in the dspf record format
Announcement
Collapse
No announcement yet.
Renaming only 1 field before writing to output format
Collapse
X
-
Originally posted by andreas.prouza View PostI always would go to use qualified fields. For DB files but also DSPFs.
For DSPF you would code it like this:
Code:dcl-f yourdspf Workstn qualified SFILE(SFL_1:d_SFL_1_ds.RRN); dcl-ds d_CTL_1_ds likerec(YOURDSPF.CTL_1: *all) inz; dcl-ds d_SFL_1_ds likerec(YOURDSPF.SFL_1: *all) inz; ?
The above errors are caused by the fact that TRANSDSPF.HEADER3 contains a field that is defined with a different length in another file used in the program.SoI am attempting to rename that field in TRANSDSPF.HEADER3. So the F spec for TRANSDSPF is ignored
Comment
Comment