how to change the length of the field in a physicalfile?
Answer Posted / gautam
As per my understanding,we can not change length of a field
in a physical file using command CHGPF.Using this command
we can change number of records and so on.
If we want to change length of a field then we have to
change its source where we previously defined the size of
the field and then requires a compilation.After compiling it
we delete all logicals based on this physical file then
file is re-build in respective file groups from where
prorams use records.
Please let me know if there is any issues!
| Is This Answer Correct ? | 13 Yes | 5 No |
Post New Answer View All Answers
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.
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.
1. If there are two programs using same file and 2 users are using the file at the same time and what can be done to allow them both to access? 2. How can remove lock from the file for accessing it by both users?
can I touch the array during treatments?
What is the diff bw PF/LF Name and their Record format name? what is restriction in record format then file name?
how do I play {insert rpg system here}?
do you use message subfiles? What are the necessary keywords required coding a message subfile?
what is a rpg?
How to write record if no field or the field are different in physical file in rpgle ?
What is the difference between copybooks and subprocedures in as400?
What is file identifier where we can use?
what is an online rpg?
what is program status data structure?
How to call one program from another program in RPG? please help me with the code
what is *place and *auto keyword in prtf ?plz explain