× 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 someone's already come up with this...  I stumbled on this
today.  Especially useful when using embedded SQL and free-form RPG. 
In SEU *browse* mode (NOT EDIT!  The Hide command in edit mode behaves
like Exclude), run the following SEU line commands:

hide /free 7
hide /end-free 7
hide c/exec 6
hide c/end-exec 6

Here's a snippet of the results in one of my recent works of art (best
viewed w/ fixed font):

0021.00 c+  Declare c1 cursor for
0022.00 c+    select CSC#, CSCLC, CSTYPC, CSSCHN   from CUBCS
0023.00 c+    where CSSCHN like '%AAUW%'
0024.00 c+    for update of CSCLC, CSTYPC, CSSCHN
0028.00 c+         Open c1
0031.00            If SQLStt <> '00000';
0032.00              Dump(A) 'Open';
0033.00            Endif;
0037.00 c+         Values Current Schema into :SchemaName
0041.00            If SQLStt <> '00000';
0042.00              Dump(A) 'SchemaName';
0043.00            Endif;
0045.00            Dow SQLcod = 0;
0049.00 c+           Fetch c1 into :ds_RFIXCUBCS7
0052.00              If SQLcod = 0;
<snip>

As you can tell, I line up my SQL with the nested indentation in the RPG.

HTH,
Dan


As an Amazon Associate we earn from qualifying purchases.

This thread ...


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.