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


Please Help Members By Posting Answers For Below Questions

can you please let me know if there is any walkins for COBOL/PLI/DB2/IMS/JCL in pune other than IBM and ITC infotech

1945


What are the various section in data division and briefly explain them.

683


What is redefines clause in COBOL?

839


i made it to stage 3 of an interview process wednessday they will quiz my knowledge again face to face for an analyst role recruiter said it will be based on Business requirements system is cobol and good ideas what they might ask etc

2095


A table has two indexes defined. Which one will be used by the SEARCH?

746






Why would you use find and get rather than to obtain?

673


How do you get the data to code the BMS macro?

1470


What are the different rules of SORT operation?

689


What is the default value(s) for an initialize? What keyword will allow for an override of the default?

647


how we sort two input files based on a common column and giving one o/p file please send me the coding logic?

1639


example for sub strings ? and refernce modifications whit output pls

1833


Difference between cobol and cobol-ii?

697


Which division and paragraphs are mandatory for a COBOL program?

703


What guidelines should be followed to write a structured cobol prgm?

661


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

658