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 a SSRANGE and NOSSRANGE?

1528


What are various search techniques in cobol? Explain.

1111


how to move the records from file to array table. give with code example

2727


What is the difference between perform … with test after and perform … with test before?

1494


what is amode(24), amode(31), rmode(24) and rmode(any)?

1193


If you are current on the owner of a set, what is the difference between obtain next and obtain first?

1439


Define static linking and dynamic linking.

1270


What is the difference between goback, stop run and exit program in cobol?

1644


I have a program with an Array of 5000 occurences which is being passed from 5 sub levels to the front end screen. Thess 5 programs using each 5*2 = 10 different arrays with size as 5000. This is causing the transaction to utilize more storage consupmtion. I am looking to reduce the storage consumption. As part of that initially i thought Dynamic array may solve my problem. After viewing the comments given i see its same as normal array. IS there any other way we can resolve this issue?

1695


Can we redefine the field of x(200) to less than 200?

1429


I have to write to a outfile where the number of records in that file should be the header of that file using IMS.. can anyone help me in this issue

2605


What is the difference between structured cobol programming and object alternativelyiented cobol?

1296


if we have " ibm mainframe ",in that how to remove first and last leading space eg:"ibm mainframe" like that the answer we need

1381


What is a report item?

1193


how we sort two input files based on a common column and giving one o/p file please send me the coding logic?

2186