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
What is the difference between Global and External Variables?
What is the Purpose of POINTER Phrase in STRING command in COBOL?
What are the cobol coding sheets?
Write the code to count the sum of n natural numbers.
Differentiate between structured cobol programming and object-oriented cobol programming.
What are INPUT PROCEDURE and OUTPUT PROCEDURE?
Which is the default, TEST BEFORE or TEST AFTER for a PERFORM statement?
How to remove the spaces at the end of each record in the output file of variable length, via cobol program?
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
What is the use of intialize verb?
What is the difference between comp and comp-3 usage?
What is the utilization of copybook in cobol?
which is Best IBM Mainframe Training and Placement Institute in Ameerpet Hyderabad
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.
What is the usage of comp fields in cobol?