Should be no problem - you can specify up to 300 full or generic object names 
on SAVOBJ.

SAVOBJ (FILE1WOQ QFILE2WQ) etc.

or even

SAVOBJ (Q* F*) etc.

would get you all files that start with Q or with F. But you are better off 
using the full names from the DSPFD output. You just need to build up the 
SAVOBJ command string in a character variable, either in CL or RPG, and run it 
with QCMDEXC. I think someone already gave you some of the code for doing this. 
You loop through the outfile from DSPFD and keep adding the filenames you find 
that have the S for type and ba-da-bing!

Am I missing something?

HTH
Vern
-------------- Original message -------------- 
From: fbocch2595@xxxxxxx 

Thanks folks but I still don't think I'll b/able to savobj multiple srcf's to 
a 
savf since the srcf's have different names. If I build a file containing just 
srcf's savobj won't allow me to save 1 file per savf, right? I'm figuring to 
move the srcf's to another lib and savlib. 







-----Original Message----- 
From: vhamberg@xxxxxxxxxxx 
To: midrange-l@xxxxxxxxxxxx 
Sent: Mon, 20 Nov 2006 11:48 AM 
Subject: Re: Saving multiple source files to a single savf 


This is good information - thanks. I have one proviso - I've never been 
comfortable with reading the QADBXREF directly. 
-------------- Original message -------------- 
From: Luis Rodriguez 

Hi, 

I've not been following this thread closely, so don't know 
if anyone has given the following alternative: 

Use the QSYS/QADBXREF file. It contains xref information 
for all the files in the system, with attributes such as 
kind of file (PF, LF, etc.) and type (Source, data, etc.). 
A SQL statement would be: 
* ----------------- 
SELECT DBXFIL, DBXLIB, DBXTXT FROM QADBXREF 
WHERE SUBSTR(DBXLIB, 1,1) <> 'Q' 
AND DBXATR = 'PF' AND DBXTYP = 'S' 
* ----------------- 

The "Substr(DBXLib"... is for omitting the System 
libraries. 


Regards, 

Luis Rodriguez 


--- midrange-l-request@xxxxxxxxxxxx wrote: 



------------------------------ 

message: 2 
date: Fri, 17 Nov 2006 19:51:35 -0600 
from: Vernon Hamberg 
subject: Re: Saving multiple source files to a single 
savf 

Yeah, Al, that's why i suggested dspfd *basatr in another 
post - 
DSPOBJD has no information as to whether a file is source 
or data - 
only that it is a PF and maybe PF38 - several DSPFD type 
parameter 
settings have the single-letter column for source or data 
type in 
their outfile. 

Regards 
Vern 

At 04:07 PM 11/17/2006, you wrote: 

Alternatively, you could do DSPFD *MBRLIST, and that 
gives you a one letter 
attribution of if it's source or not. 

Al 

Al Barsa, Jr. 
Barsa Consulting Group, LLC 



Luis Rodriguez 

IBM Certified Systems Expert 
eServer i5 iSeries Technical Solutions 




________________________________________________________________________________
 

____ 
Sponsored Link 

Compare mortgage rates for today. 
Get up to 5 free quotes. 
Www2.nextag.com 
-- 
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. 

-- 
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. 
________________________________________________________________________ 
Check out the new AOL. Most comprehensive set of free safety and security 
tools, free access to millions of high-quality videos from across the web, 
free 
AOL Mail and more. 
-- 
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 thread ...


Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

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.