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 covert given string into ASCII value in COBOL/MF
COBOL

Answer Posted / asmara

translate(Rtrim(Ltrim(substr(col_1,1,6))),'$',0123456789')
=''

thru leading (LTRIM) and Trailing (RTRIM) spaces from the
substring, then translates embedded spaces to $ and digits
to spaces and leaves any other char unchanged, then checks
to be sure there is nothing but spaces left. We can say
that we are checking the substring contains only numberic
digits, optionally with leading and/or trailing spaces.

Is This Answer Correct ?    0 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Write a program to explain size error.

1159


What is inspect in cobol ?

1268


Which is not true about evaluate statement

2413


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?

2543


Have you used comp and comp-3 in your project? And how?

2446


Mention the guidelines to write a structured cobol program?

1056


how do you reference the printer file formats from cobol programs

1171


) what is the difference between AID and HANDLE AID?

2112


What is length is cobol?

1073


Give some examples of command terminators?

1221


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

2230


Difference between cobol and cobol-ii?

1217


Are you comfortable in cobol or jcl?

1011


What is amode(24)?

1204


In COBOL programming, what is PERFORM? What is VARYING?

1111