I have FILE_A, I want to move all the data inside to another file FILE_B.
I prefix all the fields in FILE_B with "PF_" so the field names are not the same.
in the F spec, I am declaring FILE_A and FILE_B:
in the C spec, I am moving the data. MOVEL for char and Z-ADD for numeric
I am getting all the errors on the field names prefixed with PF_.
"The name or indicator PF_EDATE is not defined"
"The name or indicator PF_ETIME is not defined" and so on....
I think it's because I haven't declared the prefixed variables. But I feel like I am missing an important part. That is probably why it wants me to declare all the prefixed fields...Please help!
I prefix all the fields in FILE_B with "PF_" so the field names are not the same.
in the F spec, I am declaring FILE_A and FILE_B:
Code:
FFILE_A O E DISK * Output file * FFILE_B O E DISK PREFIX(PF_) * New PF *
Code:
MOVEL EDATE PF_EDATE Z-ADD ETIME PF_ETIME MOVEL ETRPID PF_ETRPID MOVEL EMLBX PF_EMLBX MOVEL EGSPID PF_EGSPID MOVEL EN101 PF_EN101 MOVEL EHEAD PF_EHEAD MOVEL EN104 PF_EN104 MOVEL EN301 PF_EN301
"The name or indicator PF_EDATE is not defined"
"The name or indicator PF_ETIME is not defined" and so on....
I think it's because I haven't declared the prefixed variables. But I feel like I am missing an important part. That is probably why it wants me to declare all the prefixed fields...Please help!
Comment