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 / nanda

*********************** Top of Data ****
ID DIVISION.
PROGRAM-ID. ALLINONE.
ENVIRONMENT DIVISION.
DATA DIVISION.
WORKING-STORAGE SECTION.
01 WS-DATE1.
05 DD PIC 9(2).
05 MM PIC 9(2).
05 YY PIC 9(4).
01 WS-DATE2.
05 YY PIC 9(4).
05 MM PIC 9(2).
05 DD PIC 9(2).
PROCEDURE DIVISION.
ACCEPT WS-DATE1.
MOVE CORR WS-DATE1 TO WS-DATE2.
DISPLAY WS-DATE1.
DISPLAY WS-DATE2.

STOP RUN.

Is This Answer Correct ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Have you used the sort in your project?for this type of questions any working on real time project give the eg. with real time scenario.

2402


How do u write test cases?

2029


What is a SSRANGE and NOSSRANGE?

1425


What are various search techniques in cobol? Explain.

1035


how to access the file from prodution from changeman tool and to submit a file to production

7480


Which is not true about evaluate statement

2408


What is the difference between Global and External Variables?

1325


How arrays can be defined in COBOL?

1155


How do you define a variable of comp-1 and comp-2?

1157


Describe the cobol database components?

1135


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

1081


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

1124


what is search and searchall?what is the diffrence between them?give an best example?

6701


What is inspect in cobol ?

1259


What are the different rules for performing sort operation?

1166