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

What is the difference between external and global variables in COBOL?

813


What is the difference between comp and comp-3?

702


Name the sections present in data division.

701


What is rmode(any) ?

686


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

744






What is the LINKAGE SECTION used in COBOL?

889


how can i see junk values in dclgen or in hostvariable of comp ?

2544


What are different data types in cobol?

689


What do you understand by psb and acb?

665


I have File 1 occurs 5 times with Employee-ID,Employee-Name,Employee-Dept (EEE and MECH). I have File 2 occurs 10 times with Employee-ID,Employee-Name,Employee-Dept (EEE,CIVIL,CHEMICAL and MECH). In FIle 1 and FIle 2 , for matching Employee-DEPT (Only MECH) , we need to move entire records from file1 to file 2. We should not use 2D array. Your help is needed here.

1115


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


i want to learn mainframe..any websites and material to learn from basic..? my mail id : rajeswaribe2010@gmail.com

1771


What is a SSRANGE and NOSSRANGE?

820


What is the local-storage section?

682


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

673