It's really the combination of the Integer variables, Based variables and pointers, Defined variables, and the looping constructs that make it all work pretty easily.

I think the key is that it's mostly setup (the DCLs and such) then the API Call. But the reading of the data is stupid simple with a Do loop and changing the pointer offset. Not a single %SST to be had!!

First one I did reads all the tapes in a tape library, noting if they are write protected, etc. Very slick.


- Larry "DrFranken" Bolhuis

www.Frankeni.com
www.iDevCloud.com - Personal Development IBM i timeshare service.
www.iInTheCloud.com - Commercial IBM i Cloud Hosting.

On 9/29/2016 12:05 PM, Roger Harman wrote:
Exactly my thoughts. With the DO... looping commands, it should be a piece of cake.

Roger Harman
COMMON Certified Application Developer - ILE RPG on IBM i on Power



________________________________
From: MIDRANGE-L <midrange-l-bounces@xxxxxxxxxxxx> on behalf of Rob Berendt <rob@xxxxxxxxx>
Sent: Thursday, September 29, 2016 8:32 AM
To: Midrange Systems Technical Discussion
Subject: Re: Work with Spooled Files

Since CL added pointer support, offsets, structured operations and stuff
it's gotten a lot better.
There was a time when I'd rather use QCMDEXE (or another such api) from
within RPG than write CL.


Rob Berendt


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.