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

Answer Posted / 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       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the difference between Global and External Variables?

666


What is the Purpose of POINTER Phrase in STRING command in COBOL?

723


What are the cobol coding sheets?

666


Write the code to count the sum of n natural numbers.

703


Differentiate between structured cobol programming and object-oriented cobol programming.

669






What are INPUT PROCEDURE and OUTPUT PROCEDURE?

691


Which is the default, TEST BEFORE or TEST AFTER for a PERFORM statement?

825


How to remove the spaces at the end of each record in the output file of variable length, via cobol program?

676


I have to write to a outfile where the number of records in that file should be the header of that file using IMS.. can anyone help me in this issue

1933


What is the use of intialize verb?

750


What is the difference between comp and comp-3 usage?

681


What is the utilization of copybook in cobol?

657


which is Best IBM Mainframe Training and Placement Institute in Ameerpet Hyderabad

1024


I have File 1 occurs 5 times with Employee-ID,Employee-Name,Employee-Dept (EEE and MECH). I have File 2 occurs 10 times with Employee-ID,Employee-Name,Employee-Dept (EEE,CIVIL,CHEMICAL and MECH). In FIle 1 and FIle 2 , for matching Employee-DEPT (Only MECH) , we need to move entire records from file1 to file 2. We should not use 2D array. Your help is needed here.

1119


What is the usage of comp fields in cobol?

660