How to Convert 2010/02/11 to m/dd/yyy.. with string and
without string if any other method... code
Answer Posted / naresh bandaru
01 date-input
05 DATE-YYYY PIC 9(04).
05 FILLER PIC X(1).
DATE-MM PIC 9(02).
FILLER PIC X(1).
DATE-DD PIC 9(02).
01 date-output
05 DATE-YYY PIC 9(03).
05 DATE-M PIC 9(01).
05 DATE-DD1 PIC 9(02).
accept date-input.
move date-yyyy to date-yyy.
move date-mm to date-m.
move date-dd to date-dd1.
display date-output
Is This Answer Correct ? | 1 Yes | 0 No |
Post New Answer View All Answers
What is the syntax of redefine?
Explain the input procedure?
What is sort? And its syntax?
Explain the syntax of sort?
Define sort?
why icetool be used in programmer view?
Explain the difference between search and searchall?
Explain how to detect record is locked in cobol/400? What is the solution for that?
Define redefine and its syntax?
What is redefine?
How to detect record is locked in cobol/400? What is the solution for that?
Define redefine?
What are fillers? What is the actual use of fillers? With mall/simple example?
Explain the output procedure?
Explain the syntax of redefine?