The below is the declaration for a variable ws
01 ws pic 9(3).
if you want to insert space how will you do that.
in which level u should do it
Answers were Sorted based on User's Feedback
Answer / sdexcellent@yahoo.co.in
01 ws-new redifines ws pic x(3).
in level 01 only
| Is This Answer Correct ? | 7 Yes | 2 No |
Answer / praveen bejjanki
The Question itself is not clear for me,
My understanding is to Insert space in the variable WS.
Then use move stmt as follows
Move space/spaces to WS.
Correct me if i'm wrong.
| Is This Answer Correct ? | 0 Yes | 0 No |
WORKING-STORAGE SECTION. 01 VAR1 COMP-2 VALUE 0. PROCEDURE DIVISION. MOVE 10.2115 TO VAR1. DISPLAY 'VAR1 =' VAR1. GOBACK. 10.2115 is stored as .10211499999999996E 02 in OS VS Cobol 10.2115 is stored as .10211500000000000E 02 in ecobol. Any reason why?
Difference between cobol and cobol-ii?
how will u find out 3rd week's 2nd day using occurs ?
in cobol i have one file it contains records like 10,4,23,98,7,90..... total records 100. iwant 10 to 20 in reverse order in cobol environ ment any one please give the answer......
i have 10 names in an array and my name is one of them also array is not in sorted order i need to display my name using index how will i do this
Suppose i want to declare a binary comp fild of 7 byte .how to write?
What was removed from COBOL in the COBOL II implementation?
which one is better among static call and dynamic call?
What is the maximum size of a 01 level item in COBOL I? in COBOL II?
how to know that the file has 300 records how to acess it?
what will happen if i give program name and member name as different? program runs successful or w'll abend?
What are some examples of command terminators?