×
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.
What happens when you compile this? Does it even compile? You have two endif's, and only one if that I found. You also have an else without a matching if. and I am not even real sure what error condition you are expecting to trap with that %error() statement since the preceding source is an assignment.
There is a lot missing here since you are doing array processing, but have nothing defined that is an array (nothing that you showed us anyway).
What is the error you are getting?
Mark Murphy
STAR BASE Consulting, Inc.
mmurphy@xxxxxxxxxxxxxxx
-----rpg400-l-bounces@xxxxxxxxxxxx wrote: -----
To: RPG programming on the IBM i / System i <rpg400-l@xxxxxxxxxxxx>
From: Amanda Paul
Sent by: rpg400-l-bounces@xxxxxxxxxxxx
Date: 06/25/2012 11:44AM
Subject: data structure question
Hello
Assuming that p_dsCmpabc,p_dsCmpdef,p_dsCmpghi,p_dsCmpklm,p_dsCmpnop,p_dsCmpqrs and p_dsCmpuvw are empty DS passed in the below call, If the procedure call is successful I want to see that all these datastructures get populated, could you please let me know if I am missing any thing?
Is the error handling procedure need to be repeated for each data structure so each one gets populated if there is no error?
p populateGeneralRisks...
p b Export
d populateGeneralRisks...
d pi N
d pClientNo like(dsxxxCmpabc_Template.cltkyh)
d const
d pBranchCode like(dsxxxCmphdr_File.wtdbrh)
d const
d pProductCode like(dsxxxCmphdr_File.wtdtyh)
d const
d pCompanyNo like(dsxxxCmphdr_File.Cmpnoh)
d const
d p_dsCmpabc likeds(dsCmpabc_Template)
d p_dsCmpdef likeds(dsCmpdef_Template)
d p_dsCmpghi likeds(dsCmpghi_Template)
d p_dsCmpklm likeds(dsCmpklm_Template)
d p_dsCmpnop likeds(dsCmpnop_Template)
d p_dsCmpqrs likeds(dsCmpqrs_Template)
d p_dsCmpuvw likeds(dsCmpuvw_Template)
d dsRequestIn likeds(Company_Template)
d p_errorDS LikeDS(dsAGHErrorInfo_Template)
*;
========================
d Company_Template...
d ds qualified based(dummy_ptr)
d brands likeds(brands_Template)
d Companysource likeds(Companysource_Template)
d contact likeds(contact_Template)
d CompanyRisk likeds(CompanyRisk_Template)
As an Amazon Associate we earn from qualifying purchases.
This thread ...
Re: Help creating file in IFS as UTF-8, (continued)
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.