View previous topic :: View next topic
|
Author |
Message |
Mayil
New User
Joined: 19 Dec 2005 Posts: 14
|
|
|
|
I saw a declaration in a copybook as below.
:FMVQ:-ERROR-MSG
PIC X(01)BX(03)BX(56).
What data type is this exactly, how many bytes will it take? |
|
Back to top |
|
|
muthuvel
Active User
Joined: 29 Nov 2005 Posts: 217 Location: Canada
|
|
|
|
In the copybook it is declared as :FMVQ: -
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. |
|
Back to top |
|
|
William Thompson
Global Moderator
Joined: 18 Nov 2006 Posts: 3156 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. |
|
Back to top |
|
|
Mayil
New User
Joined: 19 Dec 2005 Posts: 14
|
|
|
|
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. |
|
Back to top |
|
|
|