View previous topic :: View next topic
|
Author |
Message |
teji4
New User
Joined: 26 Oct 2007 Posts: 9 Location: bangalore
|
|
|
|
How to write in cobol program
insted of 01 it will come as Jan
02 it will come as Feb
upto 12 it will come as Dec.( only 3 characteres)
with out using evaluate and if statement.
how to find this?
pls let me know any one. |
|
Back to top |
|
|
stodolas
Active Member
Joined: 13 Jun 2007 Posts: 632 Location: Wisconsin
|
|
|
|
Using DB2's date functions would work. You could do a select and cast to turn it into the month name. |
|
Back to top |
|
|
teji4
New User
Joined: 26 Oct 2007 Posts: 9 Location: bangalore
|
|
|
|
Hi stodolas,
i am asking about using cobol statement with out using db2 |
|
Back to top |
|
|
Craq Giegerich
Senior Member
Joined: 19 May 2007 Posts: 1512 Location: Virginia, USA
|
|
|
|
teji4 wrote: |
Hi stodolas,
i am asking about using cobol statement with out using db2 |
Use a table lookup with the month as the subscript. |
|
Back to top |
|
|
|