How to insert more than one record to a pf at a time?(Bulk
insert to a pf)
Answers were Sorted based on User's Feedback
Answer / kolla ravi
There is not a thing like a "Bulk insert" or "many records
in one go". No matter what method you adopt the record
action on file is done one at a time.
Now the method you use again depends on Data you have.
If you have data in one or more files CPYF can be used. SQL
may be used when more conditioning and calculation is
needed.Manual entry may be thro UPDDTA or Programs supplied
by 3rd party or tailor made to suit the need.
| Is This Answer Correct ? | 8 Yes | 2 No |
Answer / swetha p rao
You need to do programming again to handle that subfile
rite?
| Is This Answer Correct ? | 4 Yes | 0 No |
Answer / zhang
Swetha is right, for additional you can use CPYF or
use SQL
"insert into destable select column1,column2,'123' from
srctable"
| Is This Answer Correct ? | 4 Yes | 0 No |
Answer / swetha p rao
Bulk insert can be done in ways
1. Using SQL we can runa query
insert into table1 values('a','b','c'),('x','y','z')
2. Using STRDFU we insert records into PF
3. Using DBU (Database utility )also we can insert records
| Is This Answer Correct ? | 4 Yes | 1 No |
Answer / jp
The question is ambiguous. But still one answer is that you
can enter do bulk insert by the command INZPFM FILE(PF1)
RECORDS(*DFT).Hence the member will be written with data of
maximum records the member can hold.
| Is This Answer Correct ? | 2 Yes | 0 No |
Answer / subba reddy
more than one record to a pf at a time
1. Using SQL we can runa query
insert into table1 values('a','b','c'),('x','y','z')
2. Using DBU (Database utility )also we can insert records
But using STRDFU we can insert one record at a time
correct me if i am wrong.....
| Is This Answer Correct ? | 1 Yes | 0 No |
Answer / sharath
an ovrdbf can be used to define blocking factor..individual inserts go to the buffer and get physically inserted into the file when the blocking factor limit is reached.
| Is This Answer Correct ? | 0 Yes | 0 No |
Answer / sethu 400
using STRSQL + f4
STRFA + F4
STRFA - START FIELD AID
ENTER SEQUENCE NO
SELECT MODE(F6)
ADD
| Is This Answer Correct ? | 0 Yes | 0 No |
Maximum how many fields we can create under a record format of PF?
how to see number of logical files depending on a pf?...can we declare more than 20 logical files from a single pf? is it possible
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...
one physical file can have how many max of logical files? what is the primary file?
hi iam very new to as400. i had created one physical file can any one tell command to enter data in to that
Suppose I have a pf, it contains 5 members, how to access particular member data from logical file? What is the use of member in pf?
I have physical file with 100 records,there is no any duplicate records in this pf.based on this pf one logical file I have used.but this lf is viewing only 80 records only of that pf?what is the reason for this?
can any one pls tell me some differences between a LF and command OPNQRYF?
3 Answers Accenture, Cognizant, eFunds,
what is use of self join and which cases you will use this join
What is the interactive job?
How to index LF by relative record no (RRN)
what is the difference between adding keys & constraints into a phisical file