How to Convert 2010/02/11 to m/dd/yyy.. with string and
without string if any other method... code

Answer Posted / mvrk

The above issue can be resolved by using REDEFINES clause.

01 DATE-FIELD
05 DATE-YYYY PIC 9(04).
05 DATE-MM PIC 9(02).
05 DATE-DD PIC 9(02).
01 DATE-CONT REDEFINES DATE-FIELD
05 DATE-MM-CONT PIC 9(02).
05 DATE-DD-CONT PIC 9(02).
05 DATE-YYYY-CONT PIC 9(04).

I guess the above declaration will resolve it. I have not
tested it.

Friends, please correct me if i am wrong.

Is This Answer Correct ?    1 Yes 13 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is output procedure?

537


What are fillers? What is the actual use of fillers? With mall/simple example?

546


seqence numbers in cobol

2655


Define perform?

514


What is comp?

548






What is sort?

531


why icetool be used in programmer view?

2136


Explain the syntax of sort?

552


What is redefine?

549


Define perform? And its types?

501


Define redefine and its syntax?

536


Explain how to detect record is locked in cobol/400? What is the solution for that?

524


Define redefine?

553


What is the syntax of sort?

534


Explain the difference between search and searchall?

508