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 / varun v
I agree with Ans # 1 also.
But I think "Inspect Tallying" is the effective one as
there is no manual calculation is required for finding the
exact length of the second variable field(CHR6 in Ans #1)
is required.
| Is This Answer Correct ? | 7 Yes | 3 No |
Post New Answer View All Answers
how do you reference the esds vsam file formats from cobol programs
) How do u handle errors in BMS macro
What is the difference between Structured COBOL Programming and Object Oriented COBOL programming?
Why occurs cannot be used in 01 level in COBOL?
How to remove the spaces at the end of each record in the output file of variable length, via cobol program?
How do you differentiate between cobol and cobol-ii?
What is the difference between perform … with test after and perform … with test before?
What are declaratives and what are their uses in cobol?
What is rmode(24)
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
)If there are 10 steps in GDG, if I want to refer the step2 after step5 . what should I do?
What is the difference between structured cobol programming and object alternativelyiented cobol?
What is the default value(s) for an initialize? What keyword will allow for an override of the default?
what is s000 u4087 error? please give the all error codes in cobol,jcl.
write a cobol logic. i have file that has 10 records .1 record go to first output file and second record goes to 2 output and etc