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

Re: 01 NAME1 PIC X(13) VALUE "COBOL PROGRAMMING". 01 NAME2
PIC X(13). now I want to display the value of NAME1 in
reverse order i.e value should be displayed as "GNIMMARGORP
LOBOC" HOW can I do that ??? please let me know if any one
knows it.

Answer Posted / sruthi

Hi Subu,
first of all the size of the var NAME1 is 13. You are
passing more than 13 chars. Some data will be truncted.
There are 2 methods to reverse the string.
one is move reference modification.it is very lengthy
process and other is reverse function.
syntax: move function reverse(NAME1) to NAME2

Is This Answer Correct ?    12 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the difference between external and global variables in COBOL?

1470


What is the usage of comp fields in cobol?

1188


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

1118


Write a program that uses move corresponding.

1153


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.

4174


How to remove 2 duplicate records and copy only one using job control language?

1224


What are the cobol coding sheets?

1280


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

2379


i was faced one question- i have value -00001234.56 Suppress the zeroes and the output should be -1234.56 But Not - 1234.56 spaces should not be available after suppressing the zeroes. logic in jcl and cobol?

1329


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

1460


What are literals?

1141


What are the pertinent COBOL commands?

3181


Differentiate between structured cobol programming and object-oriented cobol programming.

1159


How do u write test cases?

2070


How to remove the spaces at the end of each record in the output file of variable length, via cobol program?

1172