I must be losing my ever-loving mind. I did a DSPFFD FILE(QSYS/QAFD*) OUTPUT(*OUTFILE) to get the field info on all the DSPFD outfile formats and searched for "based on". I never noticed the APBOF & APBOL fields in the QWHFDACP format, which are labeled "Physical file" and "Library" and which is not helpful AT ALL.
Thanks Mark!
- Dan
-----Original Message-----
From: MIDRANGE-L <midrange-l-bounces@xxxxxxxxxxxxxxxxxx> On Behalf Of Mark Waterbury
Sent: Wednesday, November 13, 2024 1:59 PM
To: Midrange Systems Technical Discussion <midrange-l@xxxxxxxxxxxxxxxxxx>
Subject: Re: DSPFD logical file "based on file" info to outfile
Hi, Dan,
I think this:
DSPFD FILE(libname/*ALL) TYPE(*ACCPTH) OUTPUT(*OUTFILE)
FILEATR(*PF *LF) OUTFILE(QTEMP/DSPFDACPTH) will give you what you are after.
Hope that helps,
Mark S. Waterbury
On Wednesday, November 13, 2024 at 01:39:31 PM EST, Dan Bale <dan.bale@xxxxxxxxxxxxxxxxxxxxx> wrote:
Command "DSPFD <LF file> TYPE(*ALL)" shows the based-on physical files. I need to get this info on all LF files into an outfile. TYPE(*ALL) isn't valid for an outfile. I haven't found any TYPE parameter that can be used with an outfile and that provides based-on physical files info.
SYSFILES has the information in the BASED_ON_FILES column, but it's provided as:
{"BASED_ON_FILES":[{"LIBRARY":"TESTLIB","FILE":"SAR7001P","MEMBER":"SAR7001P","LF_FORMAT":"RSAR7001"},{"LIBRARY":"TESTLIB","FILE":"CTYID","MEMBER":"CTYID","LF_FORMAT":"RSAR7001"}]}
I'd really rather not have to parse that out.
Any ideas?
*** CONFIDENTIALITY NOTICE: The information contained in this communication may be confidential, and is intended only for the use of the recipients named above. If the reader of this message is not the intended recipient, you are hereby notified that any dissemination, distribution, or copying of this communication, or any of its contents, is strictly prohibited. If you have received this communication in error, please return it to the sender immediately and delete the original message and any copy of it from your computer system. If you have any questions concerning this message, please contact the sender. ***
As an Amazon Associate we earn from qualifying purchases.