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 PIC 9.99 and PIC9v99?

1342


how do you reference the ksds vsam file formats from cobol programs

1196


How do you reference the following file formats from cobol programs?

1164


can anybody post me about file-aid and changemen tools pls and give me reference if any mainframe guys are there

2476


What is the utilization of copybook in cobol?

1197


Explain about different table spaces.

1111


Write a program to explain size error.

1204


What type of SDLC u followed? Why?

2000


what is the use of outrecord?

2223


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

1116


What are the different open modes available in cobol?

1195


What are all the divisions of a COBOL program?

1219


What is comp-1 and comp-2?

1232


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

1124


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

2679