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 display date in reverse order if the pic clause of
the is numeric
suppose date is 09032010 ==> need to print in 20100309
(pic clause is numeric)

Answer Posted / tata

id division.
program-id. exe.
data division.
working-storage section.
01 idate pic 9(8) value 10032010.
01 rdate pic 9(8).
procedure division.
move idate (1:2) to rdate (7:2).
move idate (3:2) to rdate(5:2).
move idate (5:4) to rdate(1:4).
display rdate.
stop run.

Is This Answer Correct ?    10 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is link edit in cobol?

1178


Explain how you can characterize tables in cobol?

1046


Difference between array and sub-script ?

1636


What are the different rules to perform a Search?

1077


What is amode(24)?

1219


State the various causes of s0c1, s0c5 and s0c7.

1061


What is Pic 9v99 Indicates in COBOL?

1239


What is difference between static and dynamic call in cobol?

1360


What is the LINKAGE SECTION used in COBOL?

1515


What are the cobol coding sheets?

1244


what is the use of outrecord?

2183


how do you define single dimensional array and multidimensional array in your cobol?

1078


How to get the last record in vsam file in cluster? And how can you get the ksds file records into cobol program?

1139


How do you get the data to code the BMS macro?

1952


What is cobol?

1222