My god...thanks a lot!!

I've done a small test:

1, First create a (vb,1024,27998,ps) data set on zos and write many records
to it.
   All records with the same actual length: 8
   so the data set is actually small.

2, Then I code a PL/I program to update first 40,000 records.
   The program runs for half an hour and the Excp Count is 416,084!!!

3, I code a similar cobol program to do the same thing with the same data
set.
   It finishs in a minute and the Excp Count is only 38!!!


So i think the problem is just what Robert said : QSAM and BSAM.

Then I searched the net and got this link:
http://www-1.ibm.com/support/docview.wss?uid=isg1PQ68269

IBM said it's a problem that  'VisualAge and Enterprise PL/I sometimes use
BSAM for record I/O,
while the older PL/I always used QSAM. This may cause problems
for applications or products that assume record I/O will always
be performed with QSAM.'

We're using ADCD ZOS1.4 Summer and Enterprise PL/I for Z/OS
V3.R1.M0(Built:20030401).

So, what I should do?








--
Best Regards,
Johnny Luo

----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [EMAIL PROTECTED] with the message: GET IBM-MAIN INFO
Search the archives at http://bama.ua.edu/archives/ibm-main.html

Reply via email to