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


Please Help Members By Posting Answers For Below Questions

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

2079


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.

2267


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

1054


do you use message subfiles? What are the necessary keywords required coding a message subfile?

899


How to write record if no field or the field are different in physical file in rpgle ?

697


What is the diff bw PF/LF Name and their Record format name? what is restriction in record format then file name?

2735


what is a rpg?

911


What is the difference between iter and do?

931


can you debug ile rpg program using isdb?

936


how do I preserve and clean the array?

846


What is the difference between copybooks and subprocedures in as400?

1079


how do you use commitment control in rpg?

985


is this a rpg channel?

892


what is kids-rpg?

892


how do I declare a minor?

893