Can I redefine an X(100) field with a field of X(200)?
Submitted by: AdministratorYes. 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.
Submitted by: Administrator
Submitted by: Administrator
Read Online Cobol Job Interview Questions And Answers
Top Cobol Questions
☺ | What divisions, sections and paragraphs are mandatory for a COBOL program? |
☺ | How is sign stored in Packed Decimal fields and Zoned Decimal fields? |
☺ | What the difference is between CONTINUE and NEXT SENTENCE ? |
☺ | Give some advantages of REDEFINES clause? |
☺ | How do you code COBOL to access a parameter that has been defined in JCL? And do you code the PARM parameter on the EXEC line in JCL? |
Top Coding/Programming Categories
☺ | Python Interview Questions. |
☺ | OOP Interview Questions. |
☺ | Software engineering Interview Questions. |
☺ | PHP Interview Questions. |
☺ | VBA (Visual Basic for Applications) Interview Questions. |