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

Why occurs cannot be used in 01 level in COBOL?

721


I have a program with an Array of 5000 occurences which is being passed from 5 sub levels to the front end screen. Thess 5 programs using each 5*2 = 10 different arrays with size as 5000. This is causing the transaction to utilize more storage consupmtion. I am looking to reduce the storage consumption. As part of that initially i thought Dynamic array may solve my problem. After viewing the comments given i see its same as normal array. IS there any other way we can resolve this issue?

1234


How to get the last record in vsam file in cluster? And how can you get the ksds file records into cobol program?

710


How many bytes S(8) comp field occupy and its maximum value?

1636


If you are current on the owner of a set, what is the difference between an obtain next and obtain first? Actually in which topic will we use dis???Plz explain it clearly

2661






What is the usage of comp fields in cobol?

660


Write a program that uses move corresponding.

676


What is static and dynamic call in cobol?

601


Can you please let me know the centre name of INS certification in Kolkata.

1717


What is difference between static and dynamic call in cobol?

779


What are the access modes of START statement?

719


Write down the divisions of cobol program?

671


In which area will you utilize 88 level items in cobol?

724


What is the utilization of copybook in cobol? Could we utilize a similar copybook?

720


) how do u code after getting data?

1582