I just tried this, and I won't need the source or data, the rows have the source type ie: rpgl this is enough for what I need. Thank You!
Tim
-----Original Message-----
From: midrange-l-bounces@xxxxxxxxxxxx [mailto:midrange-l-bounces@xxxxxxxxxxxx] On Behalf Of Hatzenbeler, Tim
Sent: Thursday, December 27, 2007 10:54 AM
To: 'Midrange Systems Technical Discussion'
Subject: RE: members in a file
I think you nailed it. I'm not worried about the source or data, because I can create an alias to the membername, and then I can select it there... So if I can push this stored procedure up from my PC app. This will work.
Thanks, Tim
-----Original Message-----
From: midrange-l-bounces@xxxxxxxxxxxx [mailto:midrange-l-bounces@xxxxxxxxxxxx] On Behalf Of rob@xxxxxxxxx
Sent: Thursday, December 27, 2007 10:48 AM
To: Midrange Systems Technical Discussion
Subject: RE: members in a file
You should be able to call a stored procedure to generate the file, like:
STRSQL
CREATE PROCEDURE
LISTMEMBERS
LANGUAGE SQL
BEGIN
DECLARE CMD CHAR(200);
DECLARE CMDLEN DEC(15, 5);
SET CMD='DSPFD FILE(ROB/Q*) TYPE(*MBRLIST) OUTPUT(*OUTFILE) '
CONCAT
'FILEATR(*PF) OUTFILE(ROB/MBRLISTX)';
SET CMDLEN = 85;
CALL QCMDEXC (CMD, CMDLEN);
END
But that's not quite right because it doesn't tell you source or data.
Heck you could wrap the whole list members api into a stored procedure if
you want. There's even a way to create a stored procedure out of an
existing RPGLE program (See that LANGUAGE clause?).
Rob Berendt
--
Group Dekko Services, LLC
Dept 01.073
PO Box 2000
Dock 108
6928N 400E
Kendallville, IN 46755
http://www.dekko.com
"Hatzenbeler, Tim" <thatzenbeler@xxxxxxxxxxxxx>
Sent by: midrange-l-bounces@xxxxxxxxxxxx
12/27/2007 01:32 PM
Please respond to
Midrange Systems Technical Discussion <midrange-l@xxxxxxxxxxxx>
To
"'Midrange Systems Technical Discussion'" <midrange-l@xxxxxxxxxxxx>
cc
Subject
RE: members in a file
To yank what file? The PF with my members? Or the OUTFILE, from the
DSPFD? I could retrieve the outfile, but then I would have to tell my PC
program to run the DSPFD command with parameters prior to the "Yank", and
I don't know how to call the execute dspfd with the ADO provider.
Thanks, Tim
-----Original Message-----
From: midrange-l-bounces@xxxxxxxxxxxx
[mailto:midrange-l-bounces@xxxxxxxxxxxx] On Behalf Of Paul Nelson
Sent: Thursday, December 27, 2007 10:28 AM
To: 'Midrange Systems Technical Discussion'
Subject: RE: members in a file
How about using file transfer to yank the file over to your PC?
Paul Nelson
Cell 708-670-6978
Office 512-392-2577
nelsonp@xxxxxxxxxxxxx
-----Original Message-----
From: midrange-l-bounces@xxxxxxxxxxxx
[mailto:midrange-l-bounces@xxxxxxxxxxxx] On Behalf Of Hatzenbeler, Tim
Sent: Thursday, December 27, 2007 12:23 PM
To: 'Midrange Systems Technical Discussion'
Subject: RE: members in a file
That won't work for me... I'm actually trying to return the member list,
in
a C# .net program. And I just want to use the ado.net data provider. So
I
was hoping to be able to sql a table from PC app. If I was running this
on
my iseries, I would use your suggestion.
Or is someone can tell me how to do this in C# I'm open to suggestions as
well. I'm trying to avoid the ODBC, and OLE DB routes. I want to use the
managed code version of the data provider.
Thanks, Tim
-----Original Message-----
From: midrange-l-bounces@xxxxxxxxxxxx
[mailto:midrange-l-bounces@xxxxxxxxxxxx] On Behalf Of Mark S. Waterbury
Sent: Thursday, December 27, 2007 10:01 AM
To: Midrange Systems Technical Discussion
Subject: Re: members in a file
DSPFD FILE(library/sourcefile) TYPE(*MBRLIST) OUTPUT(*OUTFILE)
OUTFILE(library/outfilename)
Then query against library/outfilename.
Hatzenbeler, Tim wrote:
Is there a table, I can SQL, that contains the member names of a pf-src
file?
Thanks, Tim
----------------------------------------------------------------------------
--
This e-mail message, including any attachments, is for the
sole use of the intended recipient(s) and may contain
confidential or privileged information. Any unauthorized
review, use, disclosure or distribution is prohibited. If
you are not the intended recipient, please contact the
sender by reply e-mail and destroy the message.
============================================================================
==
--
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 e-mail message, including any attachments, is for the
sole use of the intended recipient(s) and may contain
confidential or privileged information. Any unauthorized
review, use, disclosure or distribution is prohibited. If
you are not the intended recipient, please contact the
sender by reply e-mail and destroy the message.
============================================================================
==
--
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.
------------------------------------------------------------------------------
This e-mail message, including any attachments, is for the
sole use of the intended recipient(s) and may contain
confidential or privileged information. Any unauthorized
review, use, disclosure or distribution is prohibited. If
you are not the intended recipient, please contact the
sender by reply e-mail and destroy the message.
==============================================================================
--
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.
------------------------------------------------------------------------------
This e-mail message, including any attachments, is for the
sole use of the intended recipient(s) and may contain
confidential or privileged information. Any unauthorized
review, use, disclosure or distribution is prohibited. If
you are not the intended recipient, please contact the
sender by reply e-mail and destroy the message.
==============================================================================
--
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 e-mail message, including any attachments, is for the
sole use of the intended recipient(s) and may contain
confidential or privileged information. Any unauthorized
review, use, disclosure or distribution is prohibited. If
you are not the intended recipient, please contact the
sender by reply e-mail and destroy the message.
==============================================================================
------------------------------------------------------------------------------
This e-mail message, including any attachments, is for the
sole use of the intended recipient(s) and may contain
confidential or privileged information. Any unauthorized
review, use, disclosure or distribution is prohibited. If
you are not the intended recipient, please contact the
sender by reply e-mail and destroy the message.
==============================================================================
As an Amazon Associate we earn from qualifying purchases.