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



The below is the declaration for a variable ws 01 ws pic 9(3). if you want to insert space how wil..

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

The below is the declaration for a variable ws 01 ws pic 9(3). if you want to insert space how wil..

Answer / kavya

using filler clause we can insert space

Is This Answer Correct ?    1 Yes 0 No

The below is the declaration for a variable ws 01 ws pic 9(3). if you want to insert space how wil..

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

Post New Answer

More COBOL Interview Questions

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.

7 Answers   Financial Services,


what is meant by binary search?

4 Answers  


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

10 Answers   TCS,


What are subroutines ? and how do we pass data to the sub routines?

2 Answers   Xansa,


How do define dynamic array in cobol.

0 Answers  






what is the advantage of sync class

3 Answers   ACS,


Define cobol?

0 Answers  


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?

9 Answers   TCS, Tech Mahindra,


What will happen if we move SPACES to numeric field and ZEROES to alphabetic field?

2 Answers  


what are the working storage fields in BMS macro?

2 Answers   IBM,


HOW WE WILL SORT THE ARRAY WHICH IS GOING TO USE FOR SEARCH ALL?

2 Answers   Cap Gemini,


how to run sub programs using static and dynamic call ...

3 Answers   TCS,


Categories