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

I have program P1 which calls file F1 which has 100 records and following structure 001 .................. 002 .................. 003 .................. 098 .................... 099 ................... 100 .................... Now I want to read these files and write these records in file F2 in following manner. 001 ...... 051 ..... 002 ...... 052 ..... 003 ...... 053 ..... .......... ....... .......... ....... .......... ....... 048 ........ 098 ...... 049 .......... 099 ....... 050 .... 100 ......

11492


What rules are to be followed while using the corresponding options?

823


Explain the configuration section of a cobol program with examples of syntax.

855


What is link edit in cobol?

935


Hi pls anybody tell me about " ANALYSIS DOCUMENT PREPARATION AND ESTIMATION OF TASK " (in real time project)."I want to update a sequential file in my project" for that purpose i need both structures i mean analysis document and estimation of task.

1871


How to fetch 1000 error records from VSAM file(Eg: 1000000 records present) while getting SOC7 abend ?

2217


What is the Purpose of POINTER Phrase in STRING command in COBOL?

957


i need a small 3d program using inline and outline.

1876


How do get the result of your program directly on your pc?

2061


how do you reference the esds vsam file formats from cobol programs

863


How many bytes S(8) comp field occupy and its maximum value?

1843


Write the code to count the sum of n natural numbers.

913


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

899


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

1037


What is amode(24), amode(31), rmode(24) and rmode(any) (applicable to only mvsesa enterprise server) ?

899