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 |
i)What is the command to lock a file in a program ii)2. Can you get a level check error in a CL program
how can you display specific subfile page on the screen in unequal subfile?
How do you know if a record exists without doing a READ and CHAIN?
two types of read performed in dataqueue?????
suppose if we want to update the data in cl what we will do?
What are the types of identifiers?
can we use cl programming to update or delete physical files
how do I preserve and clean the array?
Write the subfile logic program for the given concept. Load the data to the subfile depends upon the designation where designation is not a key field?
i'm working on progA , in that program i want to see the userids of the users who work on this program?
without logical file we cannot access the data in physical file.but we specify physical file in the program(ie:- Ffile IF E k disk).how can it be accessed?
Hi Viewers can any body explain me how to update and ahange the already existed data in physical file using subfile ? please explain me with the code if possible?