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



Jim,

I also run in the 36 environment. I ran a test on my system; the 36 OCL procedure was always (interactively) invoked, not the command.

It did not matter which library the OCL procedure was in, as long as it was in my library list. The command, by the same name, exists in the first library of the system library portion of the list.

How do you invoke the 36 environment? Through STRS36 or as a system value setting? We use the latter.

* Jerry C. Adams
*IBM System i Programmer/Analyst
B&W Wholesale Distributors, Inc.* *
voice
615.995.7024
fax
615.995.1201
email
jerry@xxxxxxxxxxxxxxx <mailto:jerry@xxxxxxxxxxxxxxx>



JDHorn@xxxxxxxxxxxxxx wrote:
Ok - I know we should have done this a long time ago but ----
I am converting old s36 report programs/ocl to commands/cl/sql/programs
A big bang conversion won't work so I am trying to make ocl/commands/rpg
coexist.
I am trying to keep the same name for the new command as the old s36
procedure.
Since these are old report programs we submit most of them I think I have solved everything except the submit job of the command.
I want to submit a command instead of a clpgm to save hassles with
parameter lengths/types
when I do this to submit the command
C EVAL COMMAND = 'SBMJOB
CMD' C +
'(' C +
'ADLST1' C + ' XXAPDL(' + XXAPDL +
')' C + ' XXAPNO(' + XXAPNO +
')' C + ' XXSORT(' + %CHAR(XXSORT) +
')' C + ' XXSUBMIT(' + XXSUBMIT +
')' C +
')' C CALL 'QCMDEXC' C PARM COMMAND 512 C PARM 512 COMMAND_LENGTH 15 5 it always calls the s36 procedure instead of the command
interactively it works just fine
from the command line or a menu if you type in ADLST1 it calls the s36
procedure
if you type in // *libl/adlst1 it calls the command
you need the // because the s36 environment thinks that everyting that
starts with a * is a comment
Anybody have an idea of how I can get something like the above to call the
command instead of the s36 proc?
PS - I'm also adding a this to the top of the old ocl so when it is called
from an old menu or other procedure
it will work for the new programs * // *LIBL/ADLST1 XXAPDL(?2?) XXAPNO(?3?) XXSORT(?4?)
XXSUBMIT(?9?) //
RETURN * Jim Horn

This email is intended only for the person or entity to which it is addressed and may contain information that is privileged, confidential or otherwise protected from disclosure. If you are not the named addressee or an employee or agent responsible for delivering this message to the named addressee, you are not authorized to read, print, retain copy, and disseminate this message or any part of it. If you have received this message in error please notify us immediately by email, discard any paper copies and delete all electronic files of this message.


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.