× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



It isn't clear to me what you want.

RDi has a pretty awesome search facility, Easy to use, fast, and a real good tool in your tool set.


On 8/25/2014 12:45 PM, Bill Howie wrote:
Hello all,

I'm hoping the awesome folks here on the MIDRANGE-L board can help me.
I'm working on a program whose goal is to copy a subset of data out of an
ERP system. Here are the steps I'm currently employing to do this:


- Do a DSPFD of all the files in a given library and put this data in an
OUTFILE we will call FILEA
- In a CL program, do a DSPFFD on all the files named in FILEA and put
this data to an OUTFILE we will call FILEB
- Via a RCVF loop, read FILEB, looking for fields beginning with certain
characters which we will say are "ABC". If a field named this way is
found, do a CPYF of the file containing this field, using the INCREL
keyword to only include the subset of data needed. This CPYF uses the
CRTFILE(*YES) keyword as well.

Here's where I'm running into a problem. These steps work, but for some
reason (I'm guessing it's because of combining the CRTFILE(*YES) keyword
and the INCREL keyword, but I don't know this) I'm getting ALL the files
copied that have a field beginning with "ABC", including the ones that have
the subset of data I need. My end goal is to just have the files copied
that have my subset of data, so the files with no data are not needed.

Is there a more elegant way of achieving this than what I've described?
Hopefully this isn't completely confusing. Any input would be much
appreciated. Thanks!

Bill


As an Amazon Associate we earn from qualifying purchases.

This thread ...

Replies:

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.