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 / sidc

use MOVE keyword

Is This Answer Correct ?    5 Yes 4 No

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

Answer / latha

using H Spec
We can use it some functions like change of date format.
only one H Spec is allowed in RPG3. if we didn't specify
then SEU automatically include it as first statement.
We can use many H Spec in RPG4

Is This Answer Correct ?    0 Yes 0 No

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

Answer / nitin

I think using data structure and MOVE operation it will be easy to convert date from one format to other

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More IBM AS400 AllOther Interview Questions

How many libraries can be there in library list ?

1 Answers  


Define each of the following operation codes a, b, c, d, e

1 Answers  


how to create physical file

1 Answers  


1)In a pf if we delete a record then how to insert a new record at the same place in that pf?? any logic or code? 2)A batch job is taking a lot of time to run,found that it is going into loop and wrapping up so how to skip that loop and process the job without changing the code? 3)In which scenario C D I R comes and C D G F comes in a job? 4)If a job came to error while processing a file how we can know at which record the error hit and how to skip that record and process other records without changing program code?

1 Answers   JDA,


what opcode could be used to test an alphanumeric field for all numeric values?

1 Answers   IBM,


A phisical file has two fields like 1) Account No(10,0) 2)Phone No(15,0)Unique on both fields?Please give me the answer for this?

3 Answers  


In RPG How to read a records from a file without using read opcodes?

0 Answers  


what is the purpose of indicators in rpg?

1 Answers   IBM,


Can an indexed file be accessed in arrival seQuence in RPG program ?

1 Answers  


WHAT IS FERERENTIAL INTRIGRITY ?

0 Answers  


how to validate input values in display file ?

0 Answers   IBM,


what is cab?

0 Answers   IBM,


Categories