How do you code file / field renames in ILE RPG?
Answer Posted / ravikumar895
Hi Ankit and shivam,
if two files having same record formats, using RENAME keyword we can rename the one record format...
Ffilename1 UF A E K Disk
F Rename(original record format name1:new record format1)
Ffilename2 UF A E K Disk
F Rename(original record format name1:new record format2)
Answer for Harshad to his question :
--------------------------------------------
D D0220NEW E DS PREFIX(D21:3)
D EXTNAME(CZGD02H0:CZTD02H2)
D D0220OLD E DS PREFIX(D@@:3)
D EXTNAME(CZGD02H0:CZTD02H2)
Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All 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
Please tell me how to read the records from a file with load an array of size with error conditions(The logic answer for this question is ARR is array of 99 elements Z-ADD 0 IDX *LOVAL SETLL FILE READ FILE 99 *IN99 DOWEQ *OFF IDX ANDLT 99 ADD 1 IDX MOVE FIELD ARR,IDX READ FILE 99 ENDDO).So,Please give me the complete of this code.
write an RPG program to calculate the marks of 5 students (A,B, C, D, E)in 3 different subjects (eng, math, sci) an display on the screen
do you use message subfiles? What are the necessary keywords required coding a message subfile?
How to write record if no field or the field are different in physical file in rpgle ?
What is the diff bw PF/LF Name and their Record format name? what is restriction in record format then file name?
what is a rpg?
What is the difference between iter and do?
can you debug ile rpg program using isdb?
how do I preserve and clean the array?
What is the difference between copybooks and subprocedures in as400?
how do you use commitment control in rpg?
is this a rpg channel?
what is kids-rpg?
how do I declare a minor?