How to delete leading spaces/blank in COBOL ?
Example:- 01 data-name-1 pic x(220) " English is a
language".
I would like to delete leading spaces.
Answer Posted / xyz
USe the Inspect Clause , get the number of the leading
spaces in the Count variable. Use the reference move then.
| Is This Answer Correct ? | 32 Yes | 5 No |
Post New Answer View All Answers
2 input fles: 2 flat files, with different number of records. both are having unique key for each record and already sorted in ascending order . match these files using unique key and in output only matching key value has to be written. please procide cobol logic
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 ......
What is the default value(s) for an initialize? What keyword will allow for an override of the default?
Write a program that uses move corresponding.
how do you reference the rrds file formats from cobol programs
Mention the guidelines to write a structured cobol program?
How to get the last record in vsam file in cluster? And how can you get the ksds file records into your cobol program?
What do you understand by psb and acb?
How do define dynamic array in cobol. how do you define single dimensional array and multidimensional array in your cobol?
How to remove the spaces at the end of each record in the output file of variable length, via cobol program?
Why would you use find and get rather than to obtain?
1.give the details about WHEN OTHER. 2. how many form are available in evaluate.
What is the difference between structured cobol programming and object alternativelyiented cobol?
What type of SDLC u followed? Why?
Differentiate cobol and cobol-ii. (Most of our programs are written in cobolii, so, it is good to know, how, this is different from cobol)?