how to convert date format from one format to another i think
in CL/400 its CVTDAT,Please tell in RPG/400 sir not in RPGILE
Answers were Sorted based on User's Feedback
Answer / keshar
IN RPG using DS we can change date format. For example go
through the link
http://tutorialindia.com/articles/as400/ile_rpg_iv_data_stru
cture_for_date_format_conversion.php
Another method is to convert date into another format is
MOVE command.
In MOVE command we can specify date format. But one should
take care about compatibility.
example:
*mdy MOVE field DATE
Also we can use %date inbuilt function to change character
into date. So use %date in this way:
1. First convert date1 into character using %char.
2. then use %date to convert into desirable date format.
syntax:
%DATE{(expression{:date-format})}
%date also use to fetch system date.
| Is This Answer Correct ? | 2 Yes | 1 No |
Answer / narmatha
In ds1 we can initialize one fmt.. after tat in ds2, int
another fmt. by using move opc we can move 1 fmt to another
fmt.. eg:
I DS1 DS
I 1 6 DDMMYY
I 1 2 DD
I 3 4 MM
I 5 6 YY Same like DS2 *MDY
c movel DD DD1 like MM1 , YY1, if we want sep
means int '/' then we can use...
| Is This Answer Correct ? | 0 Yes | 0 No |
How to define data area in RPG program? In which scenario multi occurrence DS is use in AS400?
How to update only a field of a PF in an RPG program. I don't want to update the record, only one field.
suppose a job is running for 15 minutes after that it goes to message wait? what are the impact analysis
what built in function can be used with SETLL.If you want to check whether the search argument is successful or not? Please give me answer with example?
are there any useful c runtime apis that I can call from rpg iv?
how can you display specific subfile page on the screen in unequal subfile?
what is the difference between the procedure and module in ILERPG?
1) How to define keyed file in CL pgm. 2) How can i read particular records in CL pgm from database file.
How do you do indexing in a physical file?
What is the difference between iter and do?
What is the purpose of Panel Groups?
What is the purpose of FRCDTA keyword?