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



how to convert date format from one format to another i think in CL/400 its CVTDAT,Please tell in ..

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

how to convert date format from one format to another i think in CL/400 its CVTDAT,Please tell in ..

Answer / neet

by use user defined data structure, we can change date format

Is This Answer Correct ?    1 Yes 0 No

how to convert date format from one format to another i think in CL/400 its CVTDAT,Please tell in ..

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

Post New Answer

More RPG400 Interview Questions

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

6 Answers  


how can you display specific subfile page on the screen in unequal subfile?

0 Answers   IBM,


How do you know if a record exists without doing a READ and CHAIN?

6 Answers   IBM,


two types of read performed in dataqueue?????

4 Answers   CTS,


suppose if we want to update the data in cl what we will do?

9 Answers  






What are the types of identifiers?

0 Answers  


can we use cl programming to update or delete physical files

12 Answers  


how do I preserve and clean the array?

0 Answers   IBM,


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?

2 Answers   TCS,


i'm working on progA , in that program i want to see the userids of the users who work on this program?

10 Answers   Four soft,


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?

3 Answers   HSBC, TCS,


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?

1 Answers  


Categories