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



Agreed... I need to rethink this.

The scan (in the calling pgm) is determining "what" was scanned (UPC/GTIN, internal Box ID barcode, Carrier tracking barcode, or even a "keyed" part number).

-----Original Message-----
From: RPG400-L [mailto:rpg400-l-bounces@xxxxxxxxxxxxxxxxxx] On Behalf Of Jon Paris
Sent: Monday, August 17, 2020 10:26 AM
To: RPG programming on IBM i <rpg400-l@xxxxxxxxxxxxxxxxxx>
Subject: Re: What Programs are using my service program?

One of the benefits of subprocedures is that you can look at the call and know that the only data that got changed was the return value. In your case the DS.

You are proposing to break that which is a bad idea.

If you want/need an edited version then strip it earlier in the process. Or add a stripped version to the return DS. Or write a subproc who's only role is to strip it and call than whenever the shorter version is required. Or any number of other options - but when you've "done it right" don't screw it up - do it right.

As a general thought ... The only way to make what you suggest work would be to remove the Const keyword from the procedure interface. Which means either changing the caller too or lying to the compiler and having const in one case and not the other - which is dangerous. If you have to change the caller anyway change it to pass the shortened version.


Jon

On Aug 17, 2020, at 8:43 AM, Greg Wilburn <gwilburn@xxxxxxxxxxxxxxxxxxxxxxx> wrote:

All great information... but I'm looking for info a specific procedure within a service program. Maybe I don't have to?

Currently, the input parm has CONST defined. I would like to change my procedure to modify this value. Maybe I don't need to worry about it?

The input parameter is a (scanned) tracking number barcode from UPS, FedEx or USPS. It current returns a DS containing our internal Order & Release number.
I would like to change my service program to also modify the scanned tracking barcode (input) to remove the AI ("420" application identifier) and associated data (zip code) so that I have a true tracking number.

Maybe I don't need to mess with the calling programs at all?

-----Original Message-----
From: RPG400-L [mailto:rpg400-l-bounces@xxxxxxxxxxxxxxxxxx] On Behalf Of Greg Wilburn
Sent: Friday, August 14, 2020 4:29 PM
To: rpg400-l@xxxxxxxxxxxxxxxxxx
Subject: What Programs are using my service program?

Is there an easy way to know what programs on my system are using a particular service program?
How about an individual procedure within that service program?

I have a situation where I need to change the procedure interface of a function. I think I found all of them, but I can't be sure.

TIA
--
This is the RPG programming on IBM i (RPG400-L) mailing list
To post a message email: RPG400-L@xxxxxxxxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: https://lists.midrange.com/mailman/listinfo/rpg400-l
or email: RPG400-L-request@xxxxxxxxxxxxxxxxxx
Before posting, please take a moment to review the archives
at https://archive.midrange.com/rpg400-l.

Please contact support@xxxxxxxxxxxxxxxxxxxx for any subscription related questions.

Help support midrange.com by shopping at amazon.com with our affiliate link: https://amazon.midrange.com
--
This is the RPG programming on IBM i (RPG400-L) mailing list
To post a message email: RPG400-L@xxxxxxxxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: https://lists.midrange.com/mailman/listinfo/rpg400-l
or email: RPG400-L-request@xxxxxxxxxxxxxxxxxx
Before posting, please take a moment to review the archives
at https://archive.midrange.com/rpg400-l.

Please contact support@xxxxxxxxxxxxxxxxxxxx for any subscription related questions.

Help support midrange.com by shopping at amazon.com with our affiliate link: https://amazon.midrange.com


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.