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...

i need a program by giving input as a abcd in any randem order
but i need a output as 1234 related to abcd. i.e,. a for
1,b=2,c.....etc..

Answer Posted / kamaldeep

We can use:
INSPECT ws-var1 CONVERTING 'ABCD' TO '1234'.
this will replace a with 1, b with 2, c with 3 & d with 4

Is This Answer Correct ?    2 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

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

1179


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

1291


What is static and dynamic call in cobol?

1002


What rules are followed by the search verb.

1047


What is link edit in cobol?

1152


How to traceback if I am getting SOC7 or SOC4 abend? List down the steps

5316


How to find out the closest prime number of an input number? I believe it has something to do with SEARCH and COBOL Linear Array.

4119


how can i see junk values in dclgen or in hostvariable of comp ?

2933


) How do u handle errors in BMS macro?

1908


Why is it necessary that file needs to be opened in I-O mode for REWRITE?

1257


Are you comfortable in cobol or jcl?

988


write a cobol logic. i have file that has 10 records .1 record go to first output file and second record goes to 2 output and etc

1174


What is the utilization of copybook in cobol? Could we utilize a similar copybook?

1175


What is the default value(s) for an initialize? What keyword will allow for an override of the default?

1061


What are 77 levels used for?

1052