• The Four Hundred
  • Subscribe
  • Media Kit
  • Contributors
  • About Us
  • Contact
Menu
  • The Four Hundred
  • Subscribe
  • Media Kit
  • Contributors
  • About Us
  • Contact
  • What You Don’t Know About SQL Won’t Hurt You

    July 14, 2014 Dan Burger

    Not all IBM i programmers speak SQL. It’s not even close, but it is, by most accounts a growing number. You don’t have to look under rocks to find programmers focused on leveraging SQL whether they are building applications for the Web or for green screens. This new product from Cozzi Productions, called Query File, should catch the attention of programmers regardless of their SQL skill level. It’s sort of a two-trick pony. One trick is for the people who know Query/400, but are strangers to SQL. The other trick is for those who know SQL but are pretty clueless when it comes to Query/400.

    That’s the overview, but it’s also just the beginning of the story. The main benefit is that Query File provides the capability to use standard SQL to do a query, then save it, store it in a CL program, or put it behind a menu option and reuse it to get reports, inquiries, or other outputs without making changes to it or rewriting an RPG program each time you want to use it.

    “This is an SQL tool that lets you specify the type of output you want,” explains Bob Cozzi, owner of Cozzi Productions. “It could be a normal interactive display, a 132-column report, but it could also output to PDF, a plain text file, or CSV, which is used for Microsoft Excel output.

    Query File includes two CL commands. The first is RUNQRYF (Run SQL using Query File), which allows users to specify any database file name and generate output. The other command is QRYF (Query File), which unlocks the SQL language to the user. RUNQRYF is designed with novice SQL users in mind. It’s built to store ad hoc reports/inquiries behind a menu option. QRYF allows adept SQL users to use it interactively or embed it in a CL program.

    Think of RUNQRYF as the basic command. It uses the power of SQL to retrieve and create its output. It includes several optional parameters to customize the output–specifically the capability to specify fields, select or omit criteria, and choose output sequence. When inserted behind a menu option, it can provide ad hoc reports.

    The advanced QRYF command allows users with intermediate or advanced SQL skills to specify full SQL statements–such as SELECT, INSERT, and UPDATE–including subqueries from Command Entry or within a CL program.

    Although QRYF was designed for more sophisticated SQL users, it can also be used within CL programs to perform database modifications, generate reports, produce PDFs, display database inquiries or generate other files using SQL.

    Query File’s OUTPUT parameter permits interactive or print capabilities and the same query to create a PDF, an ASCII text file, or another database file.

    For those who are familiar with Cozzi’s rants about the green screen being the downfall of the IBM i, the green-screen technology that is the foundation of Query File will come as a surprise.

    “While that is sort of a taboo subject,” he says, “the harsh reality is that are still a large number of green-screen applications being used in virtually every shop, every day. So not everything can be Web-based right out of the box. Eventually we intend to get there, but right now we just want to solve this particular problem.”

    Query File runs on IBM i 6.1 and newer versions of the operating system and is currently available for $2,449.

    RELATED STORIES

    Copy Source Members Between Systems Without FTP

    Encoding XML (Or HTML) From Within RPG

    What’s Happening In IBM i App Dev?

    Write Your Own SCANRPL Built-In Function

    Converting CASE in CL



                         Post this story to del.icio.us
                   Post this story to Digg
        Post this story to Slashdot

    Share this:

    • Reddit
    • Facebook
    • LinkedIn
    • Twitter
    • Email

    Tags:

    Sponsored by
    Computer Keyes

    Fax Directly from your IBM i

    KeyesFax is a full function automated IBM i fax system. Spooled files are burst by fax number and auto transmitted with overlays.  It combines both a send and receive facsimile processing system with a complete image package.

    The fax software will edit, send, receive, display, print, and track fax documents or images using any standard IBM i without additional expensive hardware, software or subscriptions.

    Computer Keyes has been developing Software Solutions since 1978!

    www.computerkeyes.com

    Share this:

    • Reddit
    • Facebook
    • LinkedIn
    • Twitter
    • Email

    Admin Alerts: Old IBM i Backups, New Tricks DB2 for i 7.2 Features And Fun: Part 2

    Leave a Reply Cancel reply

Volume 24, Number 24 -- July 14, 2014
THIS ISSUE SPONSORED BY:

ARCAD Software
New Generation Software
System i Developer
Computer Keyes
WorksRight Software

Table of Contents

  • Counting The Cost Of Power8 Systems
  • Get Your IBM i Audit On: Tips For A Smooth Deployment
  • Small IBM i Shops Find Simple, Inexpensive Reporting Options
  • Mad Dog 21/21: Food Chain
  • IBM Wheels And Deals For Flex And Power Systems
  • IBM Ponies Up $3 Billion For Advanced Chip Research
  • Integrated Systems Sales Still Booming In Q1
  • Companies Look To Accelerate Tech Hiring A Bit
  • What You Don’t Know About SQL Won’t Hurt You
  • IBM i Community-Minded Planning

Content archive

  • The Four Hundred
  • Four Hundred Stuff
  • Four Hundred Guru

Recent Posts

  • IBM Unveils Manzan, A New Open Source Event Monitor For IBM i
  • Say Goodbye To Downtime: Update Your Database Without Taking Your Business Offline
  • i-Rays Brings Observability To IBM i Performance Problems
  • Another Non-TR “Technology Refresh” Happens With IBM i TR6
  • IBM i PTF Guide, Volume 27, Number 18
  • Will The Turbulent Economy Downdraft IBM Systems Or Lift It?
  • How IBM Improved The Database With IBM i 7.6
  • Rocket Celebrates 35th Anniversary As Private Equity Owner Ponders Sale
  • 50 Acres And A Humanoid Robot With An AI Avatar
  • IBM i PTF Guide, Volume 27, Number 17

Subscribe

To get news from IT Jungle sent to your inbox every week, subscribe to our newsletter.

Pages

  • About Us
  • Contact
  • Contributors
  • Four Hundred Monitor
  • IBM i PTF Guide
  • Media Kit
  • Subscribe

Search

Copyright © 2025 IT Jungle