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 |
Can anybody tell me the setps to create .csv file in IFS folder on AS/400. I also need to know how I can send this .csv file to PC in xls sheet.....?
If record-format name in an externally-described file has already been defined as a file-name.how to solve this?
how do u find whether a record is locked or not??
What will be your approach in going either for OPNQRYF or Logical files. Which one to go for?
what is commitment control?explain about it?
list down and describe the sub systems vailable
what is the use of sflnxtchg?
Are all these RPG/400 Interviewed Questions being asked recently? are current?
What is difference between bind by copy and bind by reference?
IN RLU what are the record level keyword is used?
How do you do indexing in a physical file?
Can we have a Physical file without any member ? Please let me know