×
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.
In a nutshell: My order history data is in a multi-format S/36 file (not sure the exact terminology). The format makes SQL incredibly difficult, and I'm looking for a way to make ad-hoc queries easier. I tried extracting it into DB2 tables. I ended up with five tables before I started looking for other options. From what I've read, I can extract each order into a JSON or XML document, store it in DB2 table, and then run queries over the DB2 table.
Is this multi-format S/36 file a *FILE object of type PF? can you DSPFFD YOURFILE and see a single field?
Sorry not familiar with S/36 stuff.
If so, you could build 25 logical files over it defining the individual format columns using subtring(SST) like this.
A R HEADERREC PFILE(YOURFILE)
A RECORDTYPE 1A SST(YOURFIELD 1 1)
A ORDERNUM 8A SST(YOURFIELD 2 8)
A S RECORDTYPE COMP(EQ 'A')
A R DETAILREC PFILE(YOURFILE)
A RECORDTYPE 1A SST(YOURFIELD 1 1)
A ORDERNUM 8A SST(YOURFIELD 2 8)
A LINENUM 3S 0 SST(YOURFIELD 10 3)
A S RECORDTYPE COMP(EQ 'B')
and so on for each LF. Then your S/36 application runs as usual and you can query the LFs with SQL or any query tool.
As an Amazon Associate we earn from qualifying purchases.
This mailing list archive is Copyright 1997-2025 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.