Hi all,
I am taking a shot at tinkering with a CL program.
There is a command "ADDMBX" which takes 2 parms, and depending on what those are, it adds ASNs to a mailbox (I am in the EDI field)
right now, we have to do this multiple times for multiple trading partners (different parms), separated by a time delay, so something like:
the issue is that if the delay is too short, the ASNs will be overlapped and go into the wrong mailboxes causing all kinds of problems.
we could change the time delay to be longer but we want to make this more dynamic, not having to add 2 lines for every trading partner.
I tried to use the SBMJOB command in a loop to put the ASNs in a job queue so it wouldn't overlap:
I thought this would work but I am getting an error:
Message ID . . . . . . : CPD0031 Severity . . . . . . . : 30
Message type . . . . . : Diagnostic
Date sent . . . . . . : 09/27/17 Time sent . . . . . . : 17:36:42
Message . . . . : Command ADDMBX not allowed in this setting.
Cause . . . . . : The complete list of settings includes: batch,
interactive, batch control language (CL) program, interactive CL program,
batch REXX procedure, interactive REXX procedure, batch CL ILE program,
interactive CL ILE program, CALL to QCMDEXC, and various types of source
statements. The Display Command (DSPCMD) command can be used to determine
the setting in which the command is allowed.
Recovery . . . : Omit the command.
the ADDMBX command is only allowed to run in *BPGM and *IPGM? can someone tell me what this means?
I am taking a shot at tinkering with a CL program.
There is a command "ADDMBX" which takes 2 parms, and depending on what those are, it adds ASNs to a mailbox (I am in the EDI field)
right now, we have to do this multiple times for multiple trading partners (different parms), separated by a time delay, so something like:
Code:
... ADDMBX UFDNAME(*name1) PTNID(*number1) DLYJOB DLY(15) ADDMBX UFDNAME(*name2) PTNID(*number2) DLYJOB DLY(15) ADDMBX UFDNAME(*name3) PTNID(*number3) DLYJOB DLY(15) ...
we could change the time delay to be longer but we want to make this more dynamic, not having to add 2 lines for every trading partner.
I tried to use the SBMJOB command in a loop to put the ASNs in a job queue so it wouldn't overlap:
Code:
//in a loop, untill no more ASNs SBMJOB CMD (ADDMBX UFDNAME(field_1) PTNID(field_2)) + JOBQ(LIBNAME/JOBQ_name)
Message ID . . . . . . : CPD0031 Severity . . . . . . . : 30
Message type . . . . . : Diagnostic
Date sent . . . . . . : 09/27/17 Time sent . . . . . . : 17:36:42
Message . . . . : Command ADDMBX not allowed in this setting.
Cause . . . . . : The complete list of settings includes: batch,
interactive, batch control language (CL) program, interactive CL program,
batch REXX procedure, interactive REXX procedure, batch CL ILE program,
interactive CL ILE program, CALL to QCMDEXC, and various types of source
statements. The Display Command (DSPCMD) command can be used to determine
the setting in which the command is allowed.
Recovery . . . : Omit the command.
the ADDMBX command is only allowed to run in *BPGM and *IPGM? can someone tell me what this means?
Comment