PMS Information Systems
Welcome to PMS Information Systems - IBM i (AS/400) Forum !!!

Get Answers for all your queries on IBM i (AS/400).

Renaming file field in RPG Pgm

View previous topic View next topic Go down

Renaming file field in RPG Pgm

Post  razuk_r on Mon Sep 28, 2009 8:47 pm

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)

razuk_r

Posts : 65
Join date : 2009-07-31
Location : Chennai

View user profile

Back to top Go down

Re: Renaming file field in RPG Pgm

Post  muthuraman on Thu Oct 01, 2009 8:25 pm

The answer is ------------> B. PREFIX(CUS:2)

muthuraman

Posts : 42
Join date : 2009-08-28

View user profile

Back to top Go down

Re: Renaming file field in RPG Pgm

Post  swaminathan on Mon Dec 14, 2009 5:59 pm

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

View user profile

Back to top Go down

Re: Renaming file field in RPG Pgm

Post  razuk_r on Mon Dec 14, 2009 6:28 pm

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 Smile

razuk_r

Posts : 65
Join date : 2009-07-31
Location : Chennai

View user profile

Back to top Go down

Re: Renaming file field in RPG Pgm

Post  Sponsored content


Sponsored content


Back to top Go down

View previous topic View next topic Back to top

- Similar topics

 
Permissions in this forum:
You cannot reply to topics in this forum