|
You got me confused. He's trying to call this program from the command
line from what I can tell? If parms were greater than 32 bytes, how would
sub-procedure help? Do you a temporary program so that he can call it? Yes
I agree. Once again, little information is provided. Snippets of code
that really don't make sense. But in order to be able to call this
particular program.
<snip>
housek begsr
parms plist
c parm ponum 1200
c parm whs 3
</snip>
I can only assume that the name of this parameter list is parms. Missing
the beginning of the line for both the begsr and plist. I can also only
assume that this is the calling program and not the called program.
-----
Now that I've re-read it. I'm not even sure what's not working.
So the question to the OP is, is this working or not?
CALL PGM(MYLIB/WHSCHG) PARM(70118136 '100')
The first snippet of your code is not even a call to a program. Please
show the call to the program within your source.
c call 'WHSCHG' parms
So yeah, I'm even more confused than I was before. HAHA.
On Tue, Mar 8, 2016 at 2:55 PM, Bradley Stone <bvstone@xxxxxxxxx> wrote:
You're going to run into issues any time you have a parameter in aWith
parameter list that is greater than 32 bytes and not entirely filled.
You'd be better of making a subprocedure.
Brad
www.bvstools.com
On Tue, Mar 8, 2016 at 11:40 AM, Michael Schutte <mschutte369@xxxxxxxxx>
wrote:
These don't appear to be the *ENTRY PLIST for program WHSCHG.form.
How is the first parm of WHSCHG defined? Is it 12,0?
If so then you would need to do this.
CALL PGM(MYLIB/WHSCHG) PARM(X'0000701108136F' '100)
12,0 is a packed field. So you have to pass the hex value in packed
1. So you always start with X'
2.a If the length is even then you automatically start with a 0.
2.b If your length is odd, just continue to step three.
3. Follow it up with the number digits that match in the parm field.
blanks,leading zeroes if needed.
4. Since you are wanting to pass a positive value, end it with F'
On Tue, Mar 8, 2016 at 11:38 AM, Hoteltravelfundotcom <
hoteltravelfun@xxxxxxxxx> wrote:
housek begsr
parms plist
c parm ponum 1200
c parm whs 3
this is not working. I debug and the values here are 0000's and
mailing
I have hard coded values so i can test but why would this not pass.
here is the way i am calling for now.
CALL PGM(MYLIB/WHSCHG) PARM(70118136 '100')
--
This is the Midrange Systems Technical Discussion (MIDRANGE-L)
listlistlist
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.
Please contact support@xxxxxxxxxxxx for any subscription related
questions.
This is the Midrange Systems Technical Discussion (MIDRANGE-L) mailing
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.
Please contact support@xxxxxxxxxxxx for any subscription related
questions.
This is the Midrange Systems Technical Discussion (MIDRANGE-L) mailing
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.
Please contact support@xxxxxxxxxxxx for any subscription related
questions.
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.
Please contact support@xxxxxxxxxxxx for any subscription related
questions.
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.