× 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.



Maybe the cleanest way to do it would be to create a new externally described physical file containing the fields and then use CPYF with FMTOPT(*NOCHK) to move the data to it. Then you can create logical files over the new physical.

Booth Martin wrote:
I went back and looked at my source. sheeeshhh... I had already done this back in 2003. But I had never made it work because I couldn't figure out how to substring a packed field.
The program described file has columns 28-31 as packed, 2 decimals. That is 7/2, right?
What is the SST? SST(field 28 4) doesn't seem right and I am not even sure how to test it.


Trevor Perry wrote:
Booth,

Construct a LF over your S36 file. Create the fields you need in the LF, and
then sort with those..
Trevor

P.S. The term is brain-fart. Not that yours has been running flat for years,
but.. :-)


On 12/24/08 10:43 AM, "Booth Martin" <booth@xxxxxxxxxxxx> wrote:

This may be a brain flat.

I have a Sys/36 environment program described file (QS36F) with no
index. I want to order the file for processing by field 1, field 3, and
field 2 (not contiguous, not in order). Until now it has been done with
a #gsort in OCL, and works fine.

I would like to not use OCL. Any ideas?


------------------------------------------------------------------------


No virus found in this incoming message.
Checked by AVG - http://www.avg.com Version: 8.0.176 / Virus Database: 270.10.0/1861 - Release Date: 12/22/2008 11:23 AM



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.