95 pts.
Q:
cl/400
Im kuppi.im working as a software trainee on AS/400 technology.i have also joined with ibmi5 team.im trying to convert date with cl/400 coding.I have taken 2 parameters(like date and date types). A. If suppose date type is j,Now i want to convert date to *MDY format B. if date type is M,now i want to convert date to *JUL format C. sending a Program message with the value of converted date.
ASKED: Aug 18 2008  10:18 AM GMT
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
RELATED QUESTIONS
4190 pts.
A:
 RATE THIS ANSWER
0
Click to Vote:
  •   0
  •  0
  • Bookmark and Share
There is an operating system command, CVTDAT, through which you can convert dates from one format to another. So, you can execute that command from CL and send it the necessary parameters that it needs - just prompt the command with F4 to see the parameters.

FYI, if you later end up needing to do things like this in a high level language, such as RPG IV/ILE or ILE COBOL, you are much better off using their built in date support.

CWC
Last Answered: Aug 18 2008  2:53 PM GMT by Cwc   4190 pts.
Discuss This Answer:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _