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

What is the difference between Global and External Variables?

1390


What is the LINKAGE SECTION used in COBOL?

1542


Name the sections present in data division.

1260


EXPLAIN MAIN FRAME TESTING PROCESS...HOW TO FIX THE MAINFRAME BUGS?

2560


How many bytes S(8) comp field occupy and its maximum value?

2152


What are literals?

1152


What rules are to be followed while using the corresponding options?

1091


What is the usage of comp fields in cobol?

1195


What the difference is between continue and next sentence?

1185


What is the difference between a binary search and a sequential search? What are the pertinent cobol commands?

1124


In COBOL, what is the different between index and subscript?

1253


Difference between array and sub-script ?

1672


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

1268


Explain what you understand by passing by value.

1168


How did the release of cobol/370 version 1.3 improve the performance of release 1.1?

1086