Midrange News for the IBM i Community

Posted by: Bob Cozzi
Rogue Programmer
Cozzi Productions, Inc.
Do you Qualify Files to *CURLIB?
has no ratings.
Published: 28 Dec 2011
Revised: 23 Jan 2013 - 2187 days ago
Last viewed on: 18 Jan 2019 (4606 views) 

Using IBM i? Need to create Excel, CSV, HTML, JSON, PDF, SPOOL reports? Learn more about the fastest and least expensive tool for the job: SQL iQuery.

Do you Qualify Files to *CURLIB? Published by: Bob Cozzi on 28 Dec 2011 view comments(7)

I'm running across several CL programs that clear "work" files or create work files if they don't exist. Those commands are qualified to *CURLIB.

Do others have this kind of situation? Are you using *CURLIB in production CL as a qualifier?

What if (A) there is no current library, or (B) you're in a test environment and you have the wrong current library?

I would have thought *LIBL (i.e., omitting the library) would have been a better choice. Seems like we made the decision back in the 1980's to not qualify things in general, and only qualify them when the proper testing/error trapping is in place.

Return to midrangenews.com home page.
Sort Ascend | Descend