Make history of stream files in AS/400

20 pts.
Tags:
AS/400 development
STMF
Stream files
Work with Object Links
WRKLNK
Hi, I want to make a history of a Directory in AS400. (Command WRKLNK) for example like this: /EMAIL/WORK Directory WORK consists of stream files (type STMF) organized like this: WRK.001 WRK.002 WRK.003 Etc. On a monthly base I want to move all the stream files older than 1 month to /EMAIL/WORKHISTYYY where YYY is the history year. I am familiar with RPGLE, CLP, and CLLE. Can anybody explain me how to do this preferably with an example? Thanks, have a great day!

Answer Wiki

Thanks. We'll let you know when a new response is added.

Although I don’t have a specific example, I’ve found these articles and sites quite informative, and they may give you some ideas about how to proceed.

This is for the IFS toolset from IBM.
<a href=”http://www-912.ibm.com/s_dir/slkbase.nsf/0/3976fed8ab10134b862568b60071ccd3?OpenDocument”>http://www-912.ibm.com/s_dir/slkbase.nsf/0/3976fed8ab10134b862568b60071ccd3?OpenDocument</a>

I ran across this article a while back, but the site now requires membership, which wasn’t the case when I first found. Would you happen to be a member of System i Network?
<a href=”http://systeminetwork.com/article/rpg-and-ifs-working-directories”>http://systeminetwork.com/article/rpg-and-ifs-working-directories</a>

This one may also help, as it discusses how to use the various IFS APIs that are available. Through these, you can process IFS files. Quoted from the article: “For a complete list of the IFS APIs, see the source file member named IFS in the source file named H in library QSYSINC: SRCFILE(QSYSINC/H) MBR(IFS)”
<a href=”http://www.mcpressonline.com/programming/rpg/reading-ifs-files-in-rpg.html”>http://www.mcpressonline.com/programming/rpg/reading-ifs-files-in-rpg.html</a>

Thanks for the answer Cwc, this gives me a starting point.

Best regards,

Jerry5

Discuss This Question:  

 
There was an error processing your information. Please try again later.
Thanks. We'll let you know when a new response is added.
Send me notifications when members answer or reply to this question.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Forgot Password

No problem! Submit your e-mail address below. We'll send you an e-mail containing your password.

Your password has been sent to:

To follow this tag...

There was an error processing your information. Please try again later.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Thanks! We'll email you when relevant content is added and updated.

Following