|
Jason, I've done this before without problems. Make sure that if your parameters have apostrophes, that they are properly escaped. When I'm troubleshooting these types of problems, it helps me to put the command into a character field so I can get what it's trying to submit and trying it from a command line to get better error messages. Matt -----Original Message----- From: rpg400-l-bounces@xxxxxxxxxxxx [mailto:rpg400-l-bounces@xxxxxxxxxxxx] On Behalf Of Jason Olson Sent: Friday, July 08, 2005 8:02 PM To: rpg400-l@xxxxxxxxxxxx Subject: Submitting jobs in RPG. Hello all! I hate using QCMDEXC but sometimes when the right API is not there that is what I land up doing. Now normally here we try to stay away from as many CL programs as we can and use APIs or QCMDEXC, but I have hit a problem which has prompted me to post here. When we use QCMDEXC normally it is done like this. BldTmpFilesCMD = 'CRTDUPOBJ '+ 'OBJ(OPS005LF2) '+ 'FROMLIB(*LIBL) '+ 'OBJTYPE(*FILE) '+ 'TOLIB(QTEMP) '+ 'NEWOBJ(*OBJ) '+ 'ASPDEV(*) ' + 'TOASPDEV(*ASPDEV) '+ 'DATA(*NO)'; BldTmpFiles(BldTmpFilesCMD:%len(BldTmpFilesCMD)); Where we have a prototype to QCMDEXC named BldTmpFiles. This works great until we try to use this using SBMJOB. Has anyone out there had good success using QCMDEXC to do SBMJOB that has a program with Parms? Thanks! Thank you, Jason Olson IBM ISeries Engineer Amkor Technology 480.821.5000.5625 jolso@xxxxxxxxx "The smart shall inherit the work."
As an Amazon Associate we earn from qualifying purchases.
This mailing list archive is Copyright 1997-2025 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.