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

Answer Posted / manu som

By using CHGPF comaand we can change the pf attribute size.
And another way is

copy the physical file into another dummy file(for that
use Cpyf)
and change the physical file field length ,compile it
Then again copy the data from dummy file to original file

Is This Answer Correct ?    2 Yes 4 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

When it is desirable to describe files Internally?

1198


We have job which is running as batch. It takes atleast 06 hours to complete tht job. But I wanna do tht job with in 3 hours?

777


How to define data area in RPG program? In which scenario multi occurrence DS is use in AS400?

1567


how do I play {insert rpg system here}?

595


what is data area and how it is used in rpg program ?

762






Assume 2 users are using the same file and first user updates some record in the file. Will the 2nd user will be able to see the updated record or not?

525


Please tell me how to read the records from a file with load an array of size with error conditions(The logic answer for this question is ARR is array of 99 elements Z-ADD 0 IDX *LOVAL SETLL FILE READ FILE 99 *IN99 DOWEQ *OFF IDX ANDLT 99 ADD 1 IDX MOVE FIELD ARR,IDX READ FILE 99 ENDDO).So,Please give me the complete of this code.

2059


what is kids-rpg?

678


1. What is bound-by-call and bound-by-reference? 2. Where and why is *Nomain used? 3. What are the difficulties faced by programmers when using service programs? 4. Explain the different ways of parsing and compiling XML in iSeries.

5435


what is program status data structure?

1400


Set on command is used for closed all opened files , initialize var and release resource , return cmd is used for return to calling program but my req. Is dnt close opened files and resource must released while doing transactions , how can i do this...?

1469


what is the procedure and explain about real time scenario.

1488


what is *place and *auto keyword in prtf ?plz explain

2733


What is file identifier where we can use?

654


How would display prime numbers using CL program?

5687