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

COBOL program to read the string ' BOMBAY' in reverse order as 'YABMOB'

Answer Posted / rashi

MOVE 'BOMBAY' TO WS-STRING.

INSPECT WS-STRING TALLYING WS-COUNT FOR ALL CHARACTERS

MOVE WS-COUNT TO WS-COUNT1.

MOVE 1 TO WS-COUNT2.

PERFORM VARYING WS-COUNT1 BY -1 UNTIL WS-COUNT1 = 0
MOVE WS-STRING(WS-COUNT1:1) TO WS-REV-STRING(WS-COUNT2:1)
ADD 1 TO WS-COUNT2
END-PERFORM.

Is This Answer Correct ?    10 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What the difference is between continue and next sentence?

1120


What is amode(31)

1118


what happens if parmparameter passes zero bytes to the program

2093


What is the difference between Structured COBOL Programming and Object Oriented COBOL programming?

1077


Write some characteristics of cobol as means of business language.

1098


here is my requirement A1 is alphanumeric with value 'A1B2C3D4' as defined below 05 A1 PIC X(8) VALUE IS 'A1B2C3D4' but i need to have A2,A3 as ABCD & 1234 repectively...... A2 = ABCD A3 = 1234 Can you please explain me what are the different ways to do it?

7764


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

1136


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

1259


Write down the divisions of cobol program?

1179


How you can characterize tables in cobol?

1159


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

1198


What are the access modes of START statement?

1208


What are 77 levels used for?

1072


How to use the same COBOL program in Batch and CICS on lines? explain with an example

2336


How do get the result of your program directly on your pc?

2303