Choose the correct definition of a numeric field.
Posted: Mon Nov 16, 2015 2:25 pm
Hi,
The interviewer wrote this on paper
and
and said that I want to move +12345.67 in any of these variables. I have two choices, one I want to use the variable in the program. May be I shall use the variable for calculation and I may not. For other choice, I want to and display it I want to use the variable in the program. May be I shall use the variable for calculation and I may not but at the end of the program I want to display the variable in this choice.
Which one of the above is the correct way to define for this?
The interviewer wrote this on paper
Code: Select all
05 WS-VARIABLE1 PIC S9(05)V99.
Code: Select all
05 WS-VARIABLE2 PIC +99999.99.
Which one of the above is the correct way to define for this?