|
I don't work with procedures much, but try defining the E DS in a separate procedure and call the program from the procedure. I did a quick test putting the same E DS in the main portion and the procedure and it looks like it will work. Just not sure about the global vs. local stuff. You may have to play with it a bit. Joe Giusto II Programmer/Analyst Ritz Camera Beltsville, MD 301-419-3209 x347 410-813-2812 x347 -----Original Message----- From: rpg400-l-admin@midrange.com [mailto:rpg400-l-admin@midrange.com] On Behalf Of Chandra Krothapalli Sent: Monday, April 01, 2002 5:48 AM To: rpg400-l@midrange.com Cc: rkrothapalli@hotmail.com Subject: External Data structure This is a multi-part message in MIME format. -- [ Picked text/plain from multipart/alternative ] Hi, I am writing a new program, from this program I need to pass all the fields in a file to called program. I thought, I can do this by defining the file as Externally described data structure, but 50% of the fields in this file are also defined in another data structure. I can't rename the fields as Called program updates some of the fields in the data structure. I want to avoid the pain of moving each & every field of file to work field and Work field to File field. I have 600+ fields in the file. Any thoughts.... Thanks in advance Chandra. _______________________________________________ This is the RPG programming on the AS400 / iSeries (RPG400-L) mailing list To post a message email: RPG400-L@midrange.com To subscribe, unsubscribe, or change list options, visit: http://lists.midrange.com/cgi-bin/listinfo/rpg400-l or email: RPG400-L-request@midrange.com Before posting, please take a moment to review the archives at http://archive.midrange.com/rpg400-l.
As an Amazon Associate we earn from qualifying purchases.
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.