Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


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

can anyone say,what is the use of operation extended H/N/P?

2 Answers  


thanks mr.Harshad R Suryawaunshi,i'm new to as400 i think you are telling in rpgile i know only rpg400 if possible can you tell in rpg400

0 Answers   iGate,


I have a RPG program of 100 Lines and first line is to SETON indicator LR. Will the program execute rest of the 99 Lines?

6 Answers  


How to search particular records from the database file in rpg?

2 Answers  


how can an indexed file be used as arrival sequence in RPG?

3 Answers   IBM,


there is any limit to display the members in rpg400?

3 Answers  


i want code and what are used key words are ...like wrkmbrpdm screen (q) i have a file with 3 fields empno,empname,empaddr... here you give the empno it displays from that number to remaining empno's how? sub file screen: employee details pos to:empno then enter empno empname empaddr so file have 100 records from 1 to 100 so the above pos you give the 55 empno...it displays the from 55 to remaining... ...... please share this answel

2 Answers   IBM,


How would display prime numbers using CL program?

0 Answers   Hexaware,


What hapens when we use CPYF command to copy a LF? On which PF will it be dependent???

7 Answers   HSBC, Systime,


i have 6 char field in program, but this field is using in all files i want to chage field size as 10 char , how can i do this except using *like defn...?

1 Answers   IBM,


am 2010 passed out . can any one tell me which course is good to put 2+fake .guide me

1 Answers  


how to retrieve RRN value in RPGLE program

3 Answers  


Categories