In the program it can be replaced.If repalcing is used, it will be like(for example 2 files are of same layout and use the same copy book in a program,then it will be declared as )
Code:
file1
COPY <copybook name> REPLACING ==:FMVQ:== BY ==PREV==.
file2
COPY <copybook name> REPLACING ==:FMVQ:== BY ==NEXT==.
Quote:
:FMVQ:-ERROR-MSG PIC X(01)BX(03)BX(56).
In program, file 1 will be used as PREV-ERROR-MSG and file 2 will be used as NEXT-ERROR-MSG
If the option of replace is not specified ,it will be taken as FMVQ.
Joined: 18 Nov 2006 Posts: 3158 Location: Tucson AZ
Mayil wrote:
:FMVQ:-ERROR-MSG PIC X(01)BX(03)BX(56).
What data type is this exactly, how many bytes will it take?
It is a 62 byte alphanumeric recieving field for a 60 byte sending field.
It forces blank or space between the first and second character and the fourth and fifth character.
Thanks a lot William for the explantion. I was actually displaying the length of the variable and it displayed it as 62, was really confused. Your explanation clears my doubts.
Muthuvel, thanks for the effort. Actually i was confused regarding the data type only.