How do you code file / field renames in ILE RPG?
Answers were Sorted based on User's Feedback
Answer / kcsyam
Define a Data Structure in ILE RPG.
D New_File E DS EXTNAME(Old_File)
D New_Field1 E EXTFLD(Old_Fld1)
D New_Field2 E EXTFLD(Old_Fld2)
You can use PREFIX keyword instead of EXTFLD on different
way
| Is This Answer Correct ? | 20 Yes | 1 No |
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 |
How can you delete records form a file in rpg without using "Delete" OPCODE?
Anyone help me for the below question:- If problem/error occur in *PSSR subroutine,how should I handel it in RPG program.
How to update selected fields from pf without using update opcode. How to read all member in Rpg-3,without using any cl command?
Suppose in CL we reach at end of file and again we have to reach from 1 record
how can you display specific subfile page on the screen in unequal subfile?
A particular job executing on the iS is not behaving as expected and is operating in an environment in which it can be debugged. What commands would you use to debug and observe the program?
How to identify the object has compiled with the debug view as *source without using STRDBG?
If I have a file with 5 record and that file has 2 Key field and I want to read the unique record of the file then how can we achieve it?
What is the significance of UDATE?
what is commitment control?explain about it?
How to find d key field of a pf that doesn’t have source physical file?
How to set on/off a group of indicators in a single statement?