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

Answers were Sorted based on User's Feedback



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

Answer / s.p.reddy

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

Is This Answer Correct ?    11 Yes 3 No

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

Answer / 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

More COBOL Interview Questions

What do you understand by psb and acb?

0 Answers  


WORKING-STORAGE SECTION. 01 VAR1 COMP-2 VALUE 0. PROCEDURE DIVISION. MOVE 10.2115 TO VAR1. DISPLAY 'VAR1 =' VAR1. GOBACK. 10.2115 is stored as .10211499999999996E 02 in OS VS Cobol 10.2115 is stored as .10211500000000000E 02 in ecobol. Any reason why?

3 Answers   TCS,


If i initialize the 01 level variable in array, will it initialize all the array elements (occurs)?

8 Answers   CTS,


what is mainframe? what is the mainframe software ? what is use in s/w field?

7 Answers   CSE,


how we separate the cobol cics statements from cobol&cics programming?

1 Answers   Valtech,


How can i write a comp-3 variable into a sequential file should i declara the field in the file description as comp- 3?

1 Answers  


how can u find out just by seeing wheater it is main program or sub program ? any two ways to identify reply soon ?

2 Answers  


What is the difference between comp and comp-3 usage?

0 Answers  


wht is the diff b/w if and evaluate stmts ?

2 Answers   DELL,


which one is better among static call and dynamic call?

3 Answers  


What type of SDLC u followed? Why?

0 Answers   IBM,


is it possible to declare index in cobol program? if it is not why its tell me pls

3 Answers  


Categories