Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


How to add a field to a PF and compile it without loss of data?

Answers were Sorted based on User's Feedback



How to add a field to a PF and compile it without loss of data?..

Answer / s.kumar

First Add the fields whatever you want

then use CHGPF command

Physical file . . . . . . . . . > MyPf
Library . . . . . . . . . . . MyLib
System . . . . . . . . . . . . . *LCL
Source file . . . . . . . . . . MYSourceFile
Library . . . . . . . . . . . MyLib

Update the Physical file.No need to compile again.

Is This Answer Correct ?    24 Yes 0 No

How to add a field to a PF and compile it without loss of data?..

Answer / vijay

add the field in the last and don't change the sequence of the old field then only you can used the CHGPF effectively

Is This Answer Correct ?    9 Yes 2 No

How to add a field to a PF and compile it without loss of data?..

Answer / m.gupta

First add the field to existing pf for that u can do like this

2)Press 2 option for edit mode

3)Then go to the editor then u add the field in that editor what ever field u want

4)press f10 and write 'FILE' for saving file

5)Then u can write 'CHGPF'

6) Physical file . . . . FILE DEPT
Library . . . . . . MVLGUPTA2
System . . . . . . . . . . . . . SYSTEM *LCL
Source file . . . . . . SRCFILE QDDSSRC
Library . . . . . . MVLGUPTA2
7)Then click enter enter for 2 times

8)Then click UD and insert data

Is This Answer Correct ?    7 Yes 1 No

How to add a field to a PF and compile it without loss of data?..

Answer / ravi

Using CHGPF and CPYF you can add fields to a PF without
loss of data.

Thanks,

Is This Answer Correct ?    1 Yes 1 No

How to add a field to a PF and compile it without loss of data?..

Answer / mohan

The New field of the exisitng records would have a default
value

Is This Answer Correct ?    1 Yes 1 No

How to add a field to a PF and compile it without loss of data?..

Answer / mahalakshmi

ovrdbf command wuth out losing of data

Is This Answer Correct ?    0 Yes 1 No

How to add a field to a PF and compile it without loss of data?..

Answer / vishal

You can use ALTER TABLE in SQL to add a new field without compiling file or losing data

Is This Answer Correct ?    0 Yes 2 No

Post New Answer

More DB400 Interview Questions

How many maximum record format a logical file have?

0 Answers  


When we use any keyword like FIFO,LIFO, at file level but whenever we check by runqry we couldn't find answer in FIFO,LIFO,FCFO etc so how we check the answer.

2 Answers  


What is the primary file?

0 Answers  


How to know the perticular record in pf with out reading?

2 Answers   Cap Gemini,


There are six records in a file and we are going to update that records and used commit operation when it complete the update but suppose when it updating the third record,a error occured and operation failed.Is previously two records will be update or whole operation will be rollback? Please confirm it.

2 Answers  


hi iam very new to as400. i had created one physical file can any one tell command to enter data in to that

9 Answers   Encore,


Suppose if a physical file is having 1000 records, but i deleted 500 records from it. Here the concern is can the size of the file changes or it remains the same... kindly help me out with thorough xplanation.... Thanks in-advance...

6 Answers   ABC, TCS,


Can we concatenate fields in physical file? If yes how can we do?

0 Answers  


how to update physical files using normal logical file

4 Answers  


what is dynslt and why we use that command when do we use command

2 Answers   Active Brains, UHG,


A pf containing 100 records... my query is how to display from 11th record in the pf?

3 Answers  


What is open data path?

0 Answers  


Categories