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
What is the difference between PIC 9.99 and PIC9v99?
There are 5 fields and 1000 records in a file. Unload it into an array. Write the syntax for declaration and how will you unload it.
Have you used comp and comp-3 in your project? And how?
if we display var1 then what will b displayed in below condition. 77 var1 pic s9(2) value -10. 77 var1 pic s9(2) value -11. " " " -12. " " " -13. -14 ... ... -19.
example for sub strings ? and refernce modifications whit output pls
What are the different rules of SORT operation?
can anybody post me about file-aid and changemen tools pls and give me reference if any mainframe guys are there
What are the different data types in cobol?
What happens when we move a comp-3 field to an edited (say z (9). Zz-)?
What is redefines clause in COBOL?
How to know whether the module is dynamical or statistical?
INREC AND OUTREC? HOW TO SPLIT 5K RECORDS TO DIFFERENT FILES IN A FILE IN COBOL? RESTART IN COBOL-DB2? ISOLATION LEVELS?
Explain the configuration section of a cobol program with examples of syntax.
how we sort two input files based on a common column and giving one o/p file please send me the coding logic?
Write some characteristics of cobol as means of business language.