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

Answer Posted / surendra

find the lenght of the leading spaces then move the actual
value of the variables using reference modification to
another working storage variable.

Is This Answer Correct ?    4 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Discuss about changing dataset name in proc.

757


What is comp-1 and comp-2?

754


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

639


What is the default value(s) for an initialize and what keyword allows for an override of the default?

688


How do define dynamic array in cobol. how do you define single dimensional array and multidimensional array in your cobol?

696






What is amode(24)?

678


What are various search techniques in cobol? Explain.

639


Name the sections present in data division.

696


What are 77 levels used for?

652


can anybody post me about file-aid and changemen tools pls and give me reference if any mainframe guys are there

1833


Why occurs cannot be used in 01 level in COBOL?

707


What is the difference between goback, stop run and exit program in cobol?

914


Name some of the examples of COBOl 11?

2673


) How do u handle errors in BMS macro

1500


IF I mention stop run in CICS what happens?

1886