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
When we have a file with Duplicate records and I want to read the unique record from the file. For example a file containing Emp Name as 'Ram' and there are 3 entries of it. So how to read a unique record from File?
When it is desirable to describe files Internally?
are there any useful c runtime apis that I can call from rpg iv?
What is ment by record level identifier?
do you use message subfiles? What are the necessary keywords required coding a message subfile?
How Chain operation copies the record's data to the input buffer for the program?
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
what are the key words you must use when using a subfile?
What are the types of identifiers?
what is the procedure and explain about real time scenario.
how do I declare a minor?
How can we know running job is batch or interactive?
what is kids-rpg?
How to define data area in RPG program? In which scenario multi occurrence DS is use in AS400?
can I touch the array during treatments?