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

If i got a job on mainframe technology, will i have a bright future?. Some people are discouraging me. Let me know, is it true? Please bring back me from the confusion.

2 Answers  


what will happen if i give program name and member name as different? program runs successful or w'll abend?

5 Answers   CTS,


hi is there any means of deletin a record from a ps usin cobol not using jcl?eg if i am reading a record and if some condition is matched tat particular record must be deletd fom the ps

5 Answers   iNautix,


What are the different types of condition in cobol and write their forms.

0 Answers  


whn do i get soc7 abend while moving alphanumeric to numeric or while moving numeric to aplhanumeric please reply ASAP?

9 Answers  






COBOL Snippet: Tell where the control will when the below code execute IF (A=B) CONTINUE ELSE NEXT SENTENCE PERFORM <IMP-STMT> END-IF.

7 Answers   HCL,


write a program to eliminate duplicate records in a input file and send them to output file.THIS IS IGATE RECENT QUESTIONN.....JUST 1 WEEK BACKKKK...

5 Answers   iGate,


what are the paramater we cannot use in procedure?how many instream we can write in single jcl?can we call instream to catalog and ctalog to instream?

2 Answers   Satyam,


Under which scenario you would go for a static call as opposed to dynamic call?

5 Answers   TCS,


BY seeing a program how can we say that it is static call or dynamic call

5 Answers   CGI,


How to concatenation one or more string?

4 Answers   Temenos,


What is the Purpose of POINTER Phrase in STRING command

3 Answers  


Categories