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

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

Join the forum, it's quick and easy

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

Get Answers for all your queries on IBM i (AS/400).
PMS Information Systems
Would you like to react to this message? Create an account in a few clicks or log in to continue.

Renaming file field in RPG Pgm

3 posters

Go down

file - Renaming file field in RPG Pgm Empty Renaming file field in RPG Pgm

Post  razuk_r 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

Back to top Go down

file - Renaming file field in RPG Pgm Empty Re: Renaming file field in RPG Pgm

Post  muthuraman Thu Oct 01, 2009 8:25 pm

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

muthuraman

Posts : 42
Join date : 2009-08-28

Back to top Go down

file - Renaming file field in RPG Pgm Empty Re: Renaming file field in RPG Pgm

Post  swaminathan 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

Back to top Go down

file - Renaming file field in RPG Pgm Empty Re: Renaming file field in RPG Pgm

Post  razuk_r 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

Back to top Go down

file - Renaming file field in RPG Pgm Empty Re: Renaming file field in RPG Pgm

Post  Sponsored content


Sponsored content


Back to top Go down

Back to top

- Similar topics

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