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 comp-1 and comp-2?
I have program P1 which calls file F1 which has 100 records and following structure 001 .................. 002 .................. 003 .................. 098 .................... 099 ................... 100 .................... Now I want to read these files and write these records in file F2 in following manner. 001 ...... 051 ..... 002 ...... 052 ..... 003 ...... 053 ..... .......... ....... .......... ....... .......... ....... 048 ........ 098 ...... 049 .......... 099 ....... 050 .... 100 ......
how to convert the recors form vsam file to db2 table tru file aid
How do we get current date from system with century in COBOL?
What is difference between static and dynamic call in cobol?
Our issue is there seems to be a disconnect, or no link, between our SELECT statement and our SD. We had SELECT SORT-FILE and SELECT SORT-FILE ASSIGN TO SORTWRK. ASSIGN TO SORTWRK1 SORTWRK2 SORTWRK3 SORTWRK4. with SD SORT_FILE RECORD CONTAINS 7833 CHARACTERS. In either case, at run time, the system ignored our SORTWRK# DD statements and allocated 16 sort works with the SORTWK## naming convention. Any ideas why the system does not recognize the connection? We do not even need the SORTWRK DD statements. Thanks
What are the pertinent COBOL commands?
How do you differentiate between cobol and cobol-ii?
What is amode(31)
What is the difference between a binary search and a sequential search what are the pertinent cobol?
How you can read the file from bottom?
What is link edit in cobol?
What is the utilization of copybook in cobol? Could we utilize a similar copybook?
explain sorting techniques in cobol program?
How to remove 2 duplicate records and copy only one using job control language?