how to change the length of the field in a physicalfile?

Answers were Sorted based on User's Feedback



how to change the length of the field in a physicalfile?..

Answer / mind

first open the source and change the field length or add
field then save and exit. now using chgpf command we can do
this without compiling again. if we increase the length
it's o.k. but if we decresed the length warning message
appear like data may be lost. in this case we can't
decresed length.

Is This Answer Correct ?    2 Yes 4 No

how to change the length of the field in a physicalfile?..

Answer / prima krishnan

By using the CHGPF command,we can change the length of a
field in a physical file....

Is This Answer Correct ?    2 Yes 6 No

Post New Answer

More RPG400 Interview Questions

3 members in a databasefile .how to read records from all the members?????????

4 Answers   CTS,


How to get only unique records from a file which contains duplicate data using CPYF command ? Example : FILEA has duplicate records and FILEB is a UNIQUE defined.... and I want to get the data from FILEA to FILEB by eliminating all the duplicate records...

2 Answers  


Suppose i am having 3 programs PgmA,pgmB,pgmC and using source debugger. At debugging time i found that pgmC having some code error..then in debug mode directly how can i debug pgmC

2 Answers  


Mr.Sidc sirfor my question{how to convert date format from one format to another i think in CL/400 its CVTDAT,Please tell in RPG/400 sir not in RPGILE} you have answered using MOVE opcode,can you illustrate me with a small example sir very kind of you.

1 Answers   CTS, IBM, iGate,


suppose there are 100 records and i want to read records between 60-70 how we can read this 10 records in rpg

2 Answers   Polaris,






ESCAPE message sent by child program can be handled by parent program using which keyword?

2 Answers  


i'm working on progA , in that program i want to see the userids of the users who work on this program?

10 Answers   Four soft,


What is the difference between iter and do?

0 Answers  


IN RLU what are the record level keyword is used?

5 Answers   iGate, TCS,


can I touch the array during treatments?

0 Answers   IBM,


I have a file .In that file i have 3 fields. Those fields are eno, ename, esal.Keyfield is eno. In that file i have data like this for eno 1,2,3,4,5. Now i need to display 2nd record. That means i need to set the pointer on 2nd record... Then, write the complete rpg program using setll.

1 Answers  


Explain mdt?

0 Answers  


Categories