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



The IBM output files are shipped as LVLCHK(*NO), and IBM always ads new
fields on the end.

Al

Al Barsa, Jr.
Barsa Consulting Group, LLC

400>390

"i" comes before "p", "x" and "z"
e gads

Our system's had more names than Elizabeth Taylor!

914-251-1234
914-251-9406 fax

http://www.barsaconsulting.com
http://www.taatool.com
http://www.as400connection.com



                                                                           
             rob@xxxxxxxxx                                                 
             Sent by:                                                      
             midrange-l-bounce                                          To 
             s@xxxxxxxxxxxx            Midrange Systems Technical          
                                       Discussion                          
                                       <midrange-l@xxxxxxxxxxxx>           
             11/17/2006 04:01                                           cc 
             PM                                                            
                                                                   Subject 
                                       Re: Saving multiple source files to 
             Please respond to         a single savf                       
             Midrange Systems                                              
                 Technical                                                 
                Discussion                                                 
             <midrange-l@midra                                             
                 nge.com>                                                  
                                                                           
                                                                           




I did mention doing the DSPOBJD to an output file, reading that, searching
for ODOBAT = the designator for source physical file.  Then construct your
SAVOBJ command from that.
However, it would be a disservice of me to not suggest a different
alternative.  The problem with using IBM output files is that they can,
and do, often change with new releases of OS.  Often I will use the Object
APIs instead.  After all, who wants a "record format level check" when
you're already wrestling with other surprises resulting from an OS
upgrade?

Granted, one way to get around most record format level checks is to
eschew the use of any F spec in RPG to open that file and to use imbedded
SQL instead.  Being careful NOT to use "select all from ...".  Because
selecting all from a file that has been updated to hold Y number of fields
into an externally defined data structure that only had X fields at the
last compile is a fatal error.  Once upon a time, several versions back,
it wasn't.  You just hoped that they kept new fields at the end.

Rob Berendt
--
Group Dekko Services, LLC
Dept 01.073
PO Box 2000
Dock 108
6928N 400E
Kendallville, IN 46755
http://www.dekko.com

--
This is the Midrange Systems Technical Discussion (MIDRANGE-L) mailing list
To post a message email: MIDRANGE-L@xxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/midrange-l
or email: MIDRANGE-L-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives
at http://archive.midrange.com/midrange-l.




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.