× 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.



Hi John,

You can check out Scott Klements site and his IFS tutorial if you want to write something yourself.

If you're open to a commercial process option, we have a product called Automate that can do all that work for you and much, much more.

You could have a process that is crawling directories on the IBMi, moving or copying the files to a network drive, verifying the files and logging the entire process done very quickly.

Once this task is done Automate can be used for lots of other automation processes such as Automating IT tasks and/or end user processes.

If you're interested check out our web site or let me know and I'm happy to mock up a sample process for you to show you how easy it is.

https://www.helpsystems.com/products/automate

There's even a built-in scheduler so you can throttle your processes to run between certain times with selected file block sizes as well.

Another option but you may not want to consider would be to use .Net to do this natively. C# can do this kind of processing quite easily as well.

Regards,
Richard Schoen
Director of Document Management
e. richard.schoen@xxxxxxxxxxxxxxx
p. 952.486.6802
w. helpsystems.com
------------------------------
message: 2
date: Wed, 13 Mar 2019 11:33:31 +0000
from: John Candidi <jacandidi@xxxxxxxxxxxxxxxxx>
subject: IFS CL Program

All,

I have to move data from IFS Directories to either a .txt or .csv files

My directories look like this: [cid:image009.png@01D4D95C.F96FCF60]

That set of numbers is basically my key to the folders underneath that contain documents. I want to copy or export them to a different format but I want to do it phases. Pull 1000, then 5000, etc so I wrote the directory info out to a file. Now I can easily select the data that I want to pull. We have over 500,000 documents so this gives us a lot of flexibility to be able to work around other scheduled system events.


I am trying to write a CL program to find that directory, check for type = *STMF, and export or copy the documents and move them off somewhere (haven't decided just yet) . the documents look similar to this:
[cid:image010.png@01D4D95E.AB712820]

These documents all belong to that key above.

The problem I having is matching the directory in the IFS to the directory in my file. They MATCH for sure, I just can't get the CL program to see that.

Here is what I want to do.

Declare my file
Pull directory info from record 1 in the file I have declared Check to see if the object type beneath the directory is STMF Either EXPORT the doc to a .CSV format naming it xxxxx.csv or copy it a text file Go to the next record and start all over

Pretty simple but I don't do this ever . I have already spent a good bit of time with not the best results.

Any help would be appreciated...

John A. Candidi | IT Systems, Applications and Support Manager
2250 Chapel Avenue West, Suite 200, Cherry Hill, NJ 08002 [cid:image012.jpg@01D1C259.112E7430]
Office: 856-779-6915
Cell: 484-645-5598
Fax: 856-779-0719
Email: jacandidi@xxxxxxxxxxxxxxxxx<mailto:elselfe@xxxxxxxxxxxxxxxxx>
Web: www.aeiginsurance.com
[cid:image002.png@01D35ED7.4FE40700]<https://www.facebook.com/AEIGinsurance> [cid:image003.png@01D35ED7.4FE40700] <https://www.linkedin.com/company/american-european-insurance-group-inc-/> [cid:image004.jpg@01D35ED7.4FE40700] <https://www.twitter.com/aeiginsurance>









As an Amazon Associate we earn from qualifying purchases.

This thread ...

Follow-Ups:

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.