Hi Jim. Here's where I do it from the command line (and it works):
IFMASM ASMFLE((*IFS '/sigpdf/0310000462.PDF')) RESOURCE('')
LOCATION(*LOCAL)
RMTSVRURL('
http://127.0.0.1:9615')
OUTFILE1('/dev/null')
RUNTIME((ASSEMBLY_PAGE_COUNTS TRUE))
File JSMERGERPF in library QTEMP already exists.
File JSMERGERPF not created in library QTEMP.
Member JSMERGERPF file JSMERGERPF in QTEMP cleared.
Attributes changed for 1 objects. 0 objects not changed.
Stream file copied to object.
Assembly Complete.
Attributes changed for 1 objects. 0 objects not changed.
Stream file copied to object.
File /RJSTEMP/MRGTMP108051614353829ISDWEBSPHMICHAEL310360.TXT was found
And here's from my CL program:
CALL PGM(TEM028C) PARM('031' '0000462' '/sigpdf/0310000462.PDF' ' ' 0)
3200 - CALL PGM(TEM028R) /* The CALL command contains
parameters */
4000 - ADDLIBLE LIB(RJSIFORMS)
Library RJSIFORMS already exists in library list.
4825 - IFMASM ASMFLE((*IFS
X'61A2898797848661F0F3F1F0F0F0F0F4F6F24BD7C4C640404040404040404040404040
404040404040404040404040404040404040404040404040404040404040400000000000
00000F')) RESOURCE('') LOCATION(*LOCAL)
RMTSVRURL('
http://127.0.0.1:9615') OUTFILE1('/dev/null')
RUNTIME((ASSEMBLY_PAGE_COUNTS TRUE))
File JSMERGERPF in library QTEMP already exists.
File JSMERGERPF not created in library QTEMP.
Member JSMERGERPF file JSMERGERPF in QTEMP cleared.
Attributes changed for 1 objects. 0 objects not changed.
Stream file copied to object.
File /RJSTEMP/MRGTMP108051614374182ISDWEBSPHMICHAEL310360.TXT was found
Link removed.
ERROR: error 00001 occurred while generating report or form. Check the
joblog.
.
And that's when I look in the application log. This is what I see when it
works:
2016-08-05 14:35:38,315 [Running Assembly 1545] INFO
com.rjssoftware.iforms.webservice.handlers.AssemblyHandler.runAssembly(AssemblyHandler.java:69)
- New Assembly Request:
/assembly/pdfmerge/iSeriesClient.html?ASSEMBLY_FILE_TYPE0=IFS&ASSEMBLY_FILE_PATH0=%2Fsigpdf%2F0310000462.PDF&OUTPUT_FILE_NAME0=%2Fdev%2Fnull&FORMAT0=PDF&LOCATION0=LOCAL&PRIORITY=BATCH&ASSEMBLY_PAGE_COUNTS0=TRUE
2016-08-05 14:35:38,315 [Running Assembly 1545] INFO
com.rjssoftware.iforms.webservice.handlers.AssemblyHandler.runAssembly(AssemblyHandler.java:80)
- Type: "PDFMERGE"
2016-08-05 14:35:38,316 [Running Assembly 1545] INFO
com.rjssoftware.iforms.webservice.handlers.AssemblyHandler.getAssemblytProperties(AssemblyHandler.java:168)
- Assembly Request: Input Parameters
2016-08-05 14:35:38,316 [Running Assembly 1545] INFO
com.rjssoftware.iforms.webservice.handlers.AssemblyHandler.getAssemblytProperties(AssemblyHandler.java:178)
- ASSEMBLY_PAGE_COUNTS: "TRUE"
2016-08-05 14:35:38,316 [Running Assembly 1545] INFO
com.rjssoftware.iforms.webservice.handlers.AssemblyHandler.setAssemblyFiles(AssemblyHandler.java:271)
- ASSEMBLY_FILE_TYPE: "IFS"
2016-08-05 14:35:38,316 [Running Assembly 1545] INFO
com.rjssoftware.iforms.webservice.handlers.AssemblyHandler.setAssemblyFiles(AssemblyHandler.java:271)
- ASSEMBLY_FILE_PATH: "/sigpdf/0310000462.PDF"
2016-08-05 14:35:38,316 [Running Assembly 1545] INFO
com.rjssoftware.iforms.task.assembly.AssemblyFile.<init>(AssemblyFile.java:146)
- Assembly File Type: IFS Name: /sigpdf/0310000462.PDF Paper Size: null
Orientation: NONE Scale: SHRINK Center: NONE Offset: 0.0, 0.0, 0.0, 0.0
2016-08-05 14:35:38,316 [Running Assembly 1545] INFO
com.rjssoftware.iforms.webservice.handlers.AssemblyHandler.setExporters(AssemblyHandler.java:189)
- Report Request: Export 0 Input Parameters
2016-08-05 14:35:38,316 [Running Assembly 1545] INFO
com.rjssoftware.iforms.webservice.handlers.AssemblyHandler.setExporters(AssemblyHandler.java:211)
- Location: "LOCAL"
2016-08-05 14:35:38,316 [Running Assembly 1545] INFO
com.rjssoftware.iforms.webservice.handlers.AssemblyHandler.setExporters(AssemblyHandler.java:217)
- Method: "PDFEXPORT"
2016-08-05 14:35:38,316 [Running Assembly 1545] INFO
com.rjssoftware.iforms.webservice.handlers.AssemblyHandler.setExporters(AssemblyHandler.java:223)
- Format: "PDF"
2016-08-05 14:35:38,317 [Running Assembly 1545] INFO
com.rjssoftware.iforms.webservice.handlers.AssemblyHandler.setExporters(AssemblyHandler.java:237)
- OUTPUT_FILE_NAME: "/dev/null"
2016-08-05 14:35:38,480 [Running Assembly 1545] INFO
com.rjssoftware.iforms.task.TaskManager.submitTask(TaskManager.java:64) -
Adding BATCH Task to Pool
2016-08-05 14:35:38,709 [Running Assembly 1545] INFO
com.rjssoftware.connections.IFSConnector.copyFromIFS(IFSConnector.java:385)
- Copying IFS File /sigpdf/0310000462.PDF to Local File
/rjstemp/IFSFILE_b560ee15-cfd2-4adf-a9b3-10e390d6e923pdf
2016-08-05 14:35:40,902 [Running Assembly 1545] INFO
com.rjssoftware.connections.IFSConnector.copyFromIFS(IFSConnector.java:410)
- Copy Complete
2016-08-05 14:35:40,913 [Running Assembly 1545] INFO
com.rjssoftware.iforms.task.assembly.PdfMerge.call(PdfMerge.java:97) -
Normalizing /rjstemp/IFSFILE_b560ee15-cfd2-4adf-a9b3-10e390d6e923pdf
2016-08-05 14:35:43,121 [Running Assembly 1545] INFO
com.rjssoftware.iforms.task.form.export.PdfExport.runPdfExport(PdfExport.java:127)
- Exported to Local File: /dev/null
2016-08-05 14:35:43,121 [Running Assembly 1545] INFO
com.rjssoftware.iforms.task.form.export.PdfExport.runPdfExport(PdfExport.java:158)
- Export Complete in 9 Mills
2016-08-05 14:35:43,134 [Running Assembly 1545] INFO
com.rjssoftware.iforms.task.TaskManager.submitTask(TaskManager.java:168) -
Task Complete Successfully: 4653 Millis
2016-08-05 14:35:43,134 [Running Assembly 1545] INFO
com.rjssoftware.iforms.webservice.handlers.DomainHandler.SendResponse(DomainHandler.java:529)
- Assembly Complete
And when it doesn't:
2016-08-05 14:37:41,836 [Running Assembly 1546] INFO
com.rjssoftware.iforms.webservice.handlers.AssemblyHandler.runAssembly(AssemblyHandler.java:69)
- New Assembly Request:
/assembly/pdfmerge/iSeriesClient.html?ASSEMBLY_FILE_TYPE0=IFS&ASSEMBLY_FILE_PATH0=%2Fsigpdf%2F0310000462.PDF%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20
2016-08-05 14:37:41,837 [Running Assembly 1546] INFO
com.rjssoftware.iforms.webservice.handlers.AssemblyHandler.runAssembly(AssemblyHandler.java:80)
- Type: "PDFMERGE"
2016-08-05 14:37:41,837 [Running Assembly 1546] INFO
com.rjssoftware.iforms.webservice.handlers.AssemblyHandler.getAssemblytProperties(AssemblyHandler.java:168)
- Assembly Request: Input Parameters
2016-08-05 14:37:41,837 [Running Assembly 1546] INFO
com.rjssoftware.iforms.webservice.handlers.AssemblyHandler.setAssemblyFiles(AssemblyHandler.java:271)
- ASSEMBLY_FILE_TYPE: "IFS"
2016-08-05 14:37:41,837 [Running Assembly 1546] INFO
com.rjssoftware.iforms.webservice.handlers.AssemblyHandler.setAssemblyFiles(AssemblyHandler.java:271)
- ASSEMBLY_FILE_PATH: "/sigpdf/0310000462.PDF
"
2016-08-05 14:37:41,837 [Running Assembly 1546] INFO
com.rjssoftware.iforms.task.assembly.AssemblyFile.<init>(AssemblyFile.java:146)
- Assembly File Type: IFS Name: /sigpdf/0310000462.PDF
Paper Size: null Orientation: NONE Scale: SHRINK
Center: NONE Offset: 0.0, 0.0, 0.0, 0.0
2016-08-05 14:37:41,837 [Running Assembly 1546] INFO
com.rjssoftware.iforms.webservice.handlers.AssemblyHandler.setExporters(AssemblyHandler.java:189)
- Report Request: Export 0 Input Parameters
2016-08-05 14:37:41,837 [Running Assembly 1546] ERROR
com.rjssoftware.iforms.webservice.handlers.AssemblyHandler.runAssembly(AssemblyHandler.java:116)
- Error: No Export Set In Request: /assembly/pdfmerge/iseriesclient.html
2016-08-05 14:37:41,837 [Running Assembly 1546] INFO
com.rjssoftware.iforms.webservice.handlers.DomainHandler.SendResponse(DomainHandler.java:529)
- Error: No Export Set In Request: /assembly/pdfmerge/iseriesclient.html
That's where I don't see the ASSEMBLY_PAGE_COUNTS runtime parameter. That's
what i think is missing when I run it in my CL program.
On Fri, Aug 5, 2016 at 2:30 PM, midrange <franz9000@xxxxxxxxx> wrote:
Can you show us the job log where execution of this command, both
interactive and the clp? It may or may not be illuminating..
Jim
-----Original Message-----
From: MIDRANGE-L [mailto:midrange-l-bounces@xxxxxxxxxxxx] On Behalf Of
Michael Ryan
Sent: Friday, August 05, 2016 1:35 PM
To: Midrange Systems Technical Discussion
Subject: Re: Command Parameter Grief.
Thanks Dave. Yeah, it prompts fine. I've run into something like this
before
where the CPP doesn't handle the fact that there are multiple values.
Here's
what that parameter looks like when prompted:
Runtime Name & Values:
Parm Name . . . . . . . . . .
Parm Value . . . . . . . . . .
Maybe if I quote both?
On Fri, Aug 5, 2016 at 1:29 PM, <dlclark@xxxxxxxxxxxxxxxx> wrote:
"MIDRANGE-L" <midrange-l-bounces@xxxxxxxxxxxx> wrote on 08/05/2016
12:31:48 PM:
This has to be a command line thing. I wonder if I need to create
the
whole
command in a variable and then use QCMDEXEC to execute it. Any ideas?
Normally, there isn't an issue between command use from a
command line vs. command use from a CL program. As long as the
command can be prompted without errors in either environment then the
editor will format it correctly in the CL program source for
compilation and subsequent execution. The issue comes when calling a
CL program without using a command interface.
The reason is that the command-line processor (in either
environment) has to make some assumptions about literals used as
parameters in the CALL parameter list. Those assumptions are (1) that
string literals will be blank-padded to a minimum length of 32
characters or a maximum length equal to the actual length of the
string literal, (2) that numeric literals are always formatted as *DEC
15 5, and (3) floating-point literals must be formatted using
floating-point syntax. The processor for a command interface doesn't
have that issue because the command contains all the data type
definition information required to correctly format the interface to the
command processing program.
So, that said, I presume you can prompt the "failing" command
in your CL source and the editor reformats the results as needed and
without errors? If so, then it is the command processing program
associated with the command interface, itself, that is failing to
handle the parameters appropriately in an *IPGM or *BPGM environment.
Sincerely,
Dave Clark
--
int.ext: 91078
direct: (937) 531-6378
home: (937) 751-3300
Winsupply Group Services
3110 Kettering Boulevard
Dayton, Ohio 45439 USA
(937) 294-5331
**********************************************************************
*********************** This email message and any attachments is for
use only by the named
addressee(s) and may contain confidential, privileged and/or
proprietary information. If you have received this message in error,
please immediately notify the sender and delete and destroy the
message and all copies. All unauthorized direct or indirect use or
disclosure of this message is strictly prohibited. No right to
confidentiality or privilege is waived or lost by any error in
transmission.
**********************************************************************
***********************
--
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.
--
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.
--
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.