how to remove leading spaces and zeroes in a cobol
variable.is there any easy way to do it

Answer Posted / s.p.reddy

By using edit character Z in PIC clause we can remove
leading zeros

Is This Answer Correct ?    11 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

how do you reference the variable block file formats from cobol programs

686


What is perform what is varying?

709


What is the Purpose of Pointer in the string?

643


How to change size of Initial number of records to *NOMAX for ALL PF files from perticular library, how can I do that

2732


which is Best IBM Mainframe Training and Placement Institute in Ameerpet Hyderabad

1024






Which division and paragraphs are mandatory for a COBOL program?

709


What is the difference between structured cobol programming and object alternativelyiented cobol?

755


What is the difference between binary search and sequential search?

641


)If there are 10 steps in GDG, if I want to refer the step2 after step5 . what should I do?

1523


how to convert the recors form vsam file to db2 table tru file aid

2763


What are the different data types in cobol?

797


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

667


Explain how to differentiate call by context by comparing it to other calls?

689


1.give the details about WHEN OTHER. 2. how many form are available in evaluate.

1614


input= ,,,, mainframe training ,,, hyderabad .... location.... output1=$ mainframe training in hyderabad location$ output2=**** mainframe training in hyderabad location ****. In this pgn when we give input considering the spaces the output is displayed in this format.Like in the place of ,,,, $ should be displayed likewise.So please helpmeout.

1783