General Knowledge
Basic General Knowledge
Subjective
Mar 18, 2013
Can I redefine an X(100) field with a field of X(200)?
Detailed Explanation
Yes. Redefines just causes both fields to start at the same location. For example:
01 WS-TOP PIC X(1)
01 WS-TOP-RED REDEFINES WS-TOP PIC X(2).
If you MOVE '12' to WS-TOP-RED,
DISPLAY WS-TOP will show 1 while
DISPLAY WS-TOP-RED will show 12.
Discussion (0)
No comments yet. Be the first to share your thoughts!
Share Your Thoughts