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 perform … with test after and perform … with test before?

1437


What are various search techniques in cobol? Explain.

1062


Which is the default, TEST BEFORE or TEST AFTER for a PERFORM statement?

1346


What is the difference between binary search and sequential search?

1081


Are you comfortable in cobol or jcl?

1038


What is comp-1 and comp-2?

1225


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?

2267


how do you define single dimensional array and multidimensional array in your cobol?

1086


What are the different rules for performing sort operation?

1215


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

2136


i made it to stage 3 of an interview process wednessday they will quiz my knowledge again face to face for an analyst role recruiter said it will be based on Business requirements system is cobol and good ideas what they might ask etc

2587


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

1243


What is an in line perform? When would you use it? Anything else you wish to say about it.

1069


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

1222


What are the different types of condition in cobol and write their forms.

1110