Renaming file field in RPG Pgm
3 posters
Page 1 of 1
Renaming file field in RPG Pgm
A file BANKACC contains a field named ACNO. I want to use this field name as CUSNO inside the pgm. Which file spec keyword is used to achieve this?
A. PREFIX(CUS)
B. PREFIX(CUS:2)
C. RENAME(AC:CUS)
D. RENAME(ACNO:CUSNO)
A. PREFIX(CUS)
B. PREFIX(CUS:2)
C. RENAME(AC:CUS)
D. RENAME(ACNO:CUSNO)
razuk_r- Posts : 65
Join date : 2009-07-31
Location : Chennai
Re: Renaming file field in RPG Pgm
The answer is ------------> B. PREFIX(CUS:2)
muthuraman- Posts : 42
Join date : 2009-08-28
Re: Renaming file field in RPG Pgm
I am unable to get u.. can u give me a brief explanation.. Why cant we use RENAME keyword..
swaminathan- Posts : 12
Join date : 2009-07-30
Re: Renaming file field in RPG Pgm
RENAME(Ext_format:Int_format): The RENAME keyword allows you to rename record formats in an externally described file. The external name of the record format that is to be renamed is entered as the Ext_format parameter. The Int_format parameter is the name of the record as it is used in the program. The external name is replaced by this name in the program. To rename all fields by adding a prefix, use the PREFIX keyword.
Swaminathan, the answer mention by Muthuraman is right one
Swaminathan, the answer mention by Muthuraman is right one
razuk_r- Posts : 65
Join date : 2009-07-31
Location : Chennai
Similar topics
» Field Reference File change
» Define File to Field relations and explain each?
» Display file field display and Color Attribute and Hex Values
» Do the multi format logical file need to have same key field attributes for each record format? what is the significance of K *None in such Logical files?
» What is a field type? List the 3 field types
» Define File to Field relations and explain each?
» Display file field display and Color Attribute and Hex Values
» Do the multi format logical file need to have same key field attributes for each record format? what is the significance of K *None in such Logical files?
» What is a field type? List the 3 field types
Page 1 of 1
Permissions in this forum:
You cannot reply to topics in this forum