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



Thanks for both your replies
The subproc does not have any local variables, just using the I spec's
on the global definition.
As this coding will ultimately run on a clients V4.3 machine, I'm not
using a datastructure for the result of the chain.
Can a subproc have local I spec's?
I realise the S/36 file is irrelevant, just trying to provide more
information.
Many thanks.
Andy Youens | Senior IBM Consultant | formaserve systems ltd
http://www.formaserve.co.uk
-----Original Message-----
S/36 files are no different to any other program described file.  So
.....
Most likely cause is that you have local copies of the file's fields
defined
in the subproc but are not doing a read/chain with the DS as a result
field.
Unless you use the "into DS result" option, I/O will _always_ use the
global
fields.  If the same fields are defined in the subproc then the subproc
code
will see the local fields but not the data.

That would explain why changing it to a program works, since everything
is
then using the global variables.


As an Amazon Associate we earn from qualifying purchases.

This thread ...

Follow-Ups:

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.