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 many bytes does s9(15) occupy in comp1 comp2 and comp3 ?

4 Answers   TCS,


If there are two files one with 100 records and other with 101 records. we have to find out the one record that is the odd man out . What are the steps to do it

7 Answers   BirlaSoft,


please..could u give an example about USAGE IS POINTER ..and explain why and when we use it ?

0 Answers   EDS,


When would you use in-line perform?

2 Answers  


WHAT IS SOC3?HOW IT CAN BE RESOLVED?

1 Answers  


when COMP-3 is preferrable?

3 Answers   Patni,


Why we are using comp and comp-3 in real time projects?

4 Answers   IBM,


Which Search verb is equivalent to PERFORM…VARYING?

0 Answers  


what is the difference between Plan & package

3 Answers   IBM,


How would the number +1234 be stored if a PIC clause of PICTUREs9(4) comp-3 were used?

6 Answers  


Hi pls anybody tell me about " ANALYSIS DOCUMENT PREPARATION AND ESTIMATION OF TASK " (in real time project)."I want to update a sequential file in my project" for that purpose i need both structures i mean analysis document and estimation of task.

0 Answers  


What is inspect in cobol ?

0 Answers   Infosys,


Categories