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

Both the answers are correct. But if we want to use the date
or month or year value alone in somewhere in our program
then we can go with Reshma's explanation.

Is This Answer Correct ?    3 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the difference between next sentence and continue in cobol programing language?

712


What are the different rules to perform a Search?

619


What the difference is between continue and next sentence?

663


What is inspect in cobol ?

804


How do define dynamic array in cobol.

671






) How do u handle errors in BMS macro

1512


What guidelines should be followed to write a structured cobol prgm?

673


Program A (Normal COBBAT) calling a B Program (DB2COBOL, COBBATDB which is using a VSAM file. its a dynamic call. How we will handle VSAM file decleration in our from JCL from where we are running A PGM. And should we have PLAN for A pGM also. if possible can some one post a sample JCL. Thanks for help in advance.

5065


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

710


How to read the 2nd last record of a VSAM file? (The file size is huge and we don't know the key)

2723


) how do u code after getting data?

1580


Mention the guidelines to write a structured cobol program?

620


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.

2058


What rules are followed by the search verb.

638


Differentiate cobol and cobol-ii. (Most of our programs are written in cobolii, so, it is good to know, how, this is different from cobol)?

632