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 |
How to delete leading spaces/blank in COBOL ? Example:- 01 data-name-1 pic x(220) " English is a language". I would like to delete leading spaces.
what is meant by binary search?
consider the following piece of code 01 GROUP-ITEM 05 AMOUNT-1 PIC 99V9 USAGE COMP VALUE 50 05 AMOUNT-2 PIC 9(4)V99 USAGE COMP MOVE ZERO TO GROUP-ITEM ADD 50 TO AMOUNT-1 what will be the content of AMOUNT-1? a.50 b.100 c.0 d.unpredictable
What are subroutines ? and how do we pass data to the sub routines?
How do define dynamic array in cobol.
what is the advantage of sync class
Define cobol?
what is the difference between occurs and occurs depending on? i dont think so there is the difference in storage..then why we should use occurs depending on?
What will happen if we move SPACES to numeric field and ZEROES to alphabetic field?
what are the working storage fields in BMS macro?
HOW WE WILL SORT THE ARRAY WHICH IS GOING TO USE FOR SEARCH ALL?
how to run sub programs using static and dynamic call ...