Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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

How can i load all the data from a file to Table (array) in cobol.How i manage the occurs clause with out reading the file.Any options avilable ? Please can any one help me it is urgent?

2556


How to print 10 to 1 if the input have only 10 digit number?

1243


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

1226


Have you used the sort in your project?for this type of questions any working on real time project give the eg. with real time scenario.

2417


I need to compare 3 variables(dates) and do some processing based on the earliest date. There could be more then 1 date record in any of the 3 fields. What is the best way to code this?

2258


How can we find that module can be called – whether DYNAMICALLY or STATICALLY?

1201


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

1124


What are the different rules for performing sort operation?

1201


What is the difference between comp and comp-3?

1169


Which division and paragraphs are mandatory for a COBOL program?

1251


Which is not true about evaluate statement

2431


HOw can I get the negative sign while deduct high value from low value

2238


What is the utilization of copybook in cobol?

1167


How do you code cobol to access a parameter that has been defined in jcl? And do you code the parm parameter on the exec line in jcl?

1177


For rewrite, why is it mandatory that file needs to be opened?

1088