Link to home
Start Free TrialLog in
Avatar of svfafel
svfafel

asked on

passing parameters to AS400 program

I am passing parameters to an as400 program that simply displays 3 parameters.  The problem is that when i run the following:

set mCmd = createobject("ADODB.Command")
mCmd.CommandText = "{call baslib.printparms('parm1','parm2','parm3')}"

I get weird output.  The program seems to know where the parameters begin, but loses where they end.

If I run:
Call PGM(BASLIB/PRINTPARMS) PARM('PARM1' 'PARM2' 'PARM3')

from the AS400 it works fine.


Any ideas?
ASKER CERTIFIED SOLUTION
Avatar of mmcmillen
mmcmillen

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of mmcmillen
mmcmillen

you may need to cut and paste that line since if your resolution on your browser you wont notice the  single quote/double quote combinations.
svfafel:

You have many open questions:

https://www.experts-exchange.com/jsp/qShow.jsp?qid=20151411
https://www.experts-exchange.com/jsp/qShow.jsp?qid=20142486
https://www.experts-exchange.com/jsp/qShow.jsp?qid=20152290
https://www.experts-exchange.com/jsp/qShow.jsp?qid=20153618
https://www.experts-exchange.com/jsp/qShow.jsp?qid=20155682
https://www.experts-exchange.com/jsp/qShow.jsp?qid=20169125
https://www.experts-exchange.com/jsp/qShow.jsp?qid=20175800
https://www.experts-exchange.com/jsp/qShow.jsp?qid=20180978
https://www.experts-exchange.com/jsp/qShow.jsp?qid=20190767
https://www.experts-exchange.com/jsp/qShow.jsp?qid=20169126
https://www.experts-exchange.com/jsp/qShow.jsp?qid=20146852
https://www.experts-exchange.com/jsp/qShow.jsp?qid=20128521
https://www.experts-exchange.com/jsp/qShow.jsp?qid=20134835
https://www.experts-exchange.com/jsp/qShow.jsp?qid=20136451

To assist you in your cleanup, I'm providing the following guidelines:

1.  Stay active in your questions and provide feedback whenever possible. Likewise, when feedback has not been provided by the experts, commenting again makes them receive an email notification, and they may provide you with further information. Experts have no other method of searching for questions in which they have commented, except manually.

2.  Award points by hitting the Accept Comment As Answer button located above and to the left of that expert's comment.

3.  When grading, be sure to read:
https://www.experts-exchange.com/jsp/cmtyQuestAnswer.jsp#3
to ensure that you understand the grading system here at EE. If you grade less than an A, you must explain why.

4.  Questions that were not helpful to you should be PAQ'd (stored in the database for their valuable content?even if not valuable to you) or deleted. To PAQ or delete a question, you must first post your intent in that question to make the experts aware. Then, if no experts object after three full days, you can post a zero-point question at community support to request deletion or PAQ. Please include the link(s) to the question(s).
CS:  https://www.experts-exchange.com/jsp/qList.jsp?ta=commspt
At that point, a moderator can refund your points and PAQ or delete the question for you. The delete button does not work.

5.  If you fail to respond to this cleanup request, I must report you to the Community Support Administrator for further action.

Our intent is to get the questions cleaned up, and not to embarrass or shame anyone. If you have any questions or need further assistance at all, feel free to ask me in this question or post a zero-point question at CS. We are very happy to help you in this task!


thanks!
amp
community support moderator

2/6