|
I've tested it on some very large spool files and it works fine. This is
one that got processed this weekend.
Spooled file size (K) . . . . . . . . : 149528
It only reads one buffer at a time, and replaces the userspace every
time. It's slower than doing it 16mb at a time, but most of my jobs
using this are batch, so I'm concerned about over optimizing this
currently.
Kevin Bucknum
Senior Programmer Analyst
MEDDATA/MEDTRON
Tel: 985-893-2550
-----Original Message-----
From: MIDRANGE-L [mailto:midrange-l-bounces@xxxxxxxxxxxx] On Behalf Ofall
paul.roy@xxxxxxx
Sent: Friday, July 31, 2015 4:06 PM
To: Midrange Systems Technical Discussion
Subject: Re: Duplicating large spoolfiles (greater than 16m)
Hi Kevin,
I had a look on your code... I think that you do not handle spooled
files
16MB... (max size of a single user space)..The logic would be to use QSPGETSP and store the data in multiple
userspaces (create a new user space if you get CPF3CAA ) then read
userspaces and use QSPPUTSP.. to create the new spooled filesource"...
I wrote a program to do this some years ago... but unfortunately I am
not authorized to share the source code it as it is not "open
the
Paul
From: "Kevin Bucknum" <Kevin@xxxxxxxxxxxxxxxxxxx>
To: <midrange-l@xxxxxxxxxxxx>
Date: 31/07/2015 19:46
Subject: Duplicating large spoolfiles (greater than 16m)
Sent by: "MIDRANGE-L" <midrange-l-bounces@xxxxxxxxxxxx>
This comes up every now and then, and several options are always
presented, but I've never been able to find a complete program using
API's. Based on something that Tommy Holden posted athttp://webcache.googleusercontent.com/search?q=cache:HkiFuHDAUvoJ:iprode
veloper.com/forums/aft/135681+&cd=2&hl=en&ct=clnk&gl=us I came upthis.
SPLA0200,
http://code.midrange.com/0ae8a6e14f.html
The original post had copied in a spec for SPLA0100 instead of
and I also added the ability to change hold and save parameters as wea
used those with DUPCHGSPLF which doesn't handle the files greater than
16 megs.
Just adding the below for people searching for a solution:
CPA0702
QSPGETSP
QSPPUTSP
-
--
This is the Midrange Systems Technical Discussion (MIDRANGE-L) mailing
list To post a message email: MIDRANGE-L@xxxxxxxxxxxx To subscribe,
unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/midrange-l
or email: MIDRANGE-L-request@xxxxxxxxxxxx Before posting, please take
moment to review the archives athttp://archive.midrange.com/midrange-l.
--
This is the Midrange Systems Technical Discussion (MIDRANGE-L) mailing list
To post a message email: MIDRANGE-L@xxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/midrange-l
or email: MIDRANGE-L-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives
at http://archive.midrange.com/midrange-l.
As an Amazon Associate we earn from qualifying purchases.
This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].
Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.