Will RUNRMTCMD hold the host session until the program execution completes in the remote machine?
Hi, When executing RUNRMTCMD to run a long runnibg program in a remote iSeries partition, will the session on the host machine be held until the long running program completes in the remote partition? Any chance that a ‘fire and forget’ kind of effect can be achieved? i.e. I would like to have control back [...]
Answer Question
| January 20, 2009 1:15 AM
CLP, iSeries, iSeries programming commands, Remote iSeries partition, Run Remote Command, RUNRMTCMD
Hi, When executing RUNRMTCMD to run a long runnibg program in a remote iSeries partition, will the session on the host machine be held until the long running program completes in the remote partition? Any chance that a ‘fire and forget’ kind of effect can be achieved? i.e. I would like to have control back [...]
AS/400 CL Auto Reply to “Load Next Tape messages”
Would like to auto reply to this message without amending the system reply list entries, rather just from within the Backup CLP itself.
Answer Question
| February 12, 2009 5:05 AM
AS/400 backup, CL, CLP, Control Language Programming
Would like to auto reply to this message without amending the system reply list entries, rather just from within the Backup CLP itself.
Append date to FTP file name
I want to append the date to the file name I am putting on the pc. I am using a cl batch program to process the files on a daily basis. The files are identified in a member in a source file. (PUT ftpdbf/filea filea102408.txt). The files from the 400 are created with a cpysplf [...]
Answer Question
| August 31, 2009 6:04 AM
AS/400 FTP, CL, CL batch program, CLP, CPYSPLF
I want to append the date to the file name I am putting on the pc. I am using a cl batch program to process the files on a daily basis. The files are identified in a member in a source file. (PUT ftpdbf/filea filea102408.txt). The files from the 400 are created with a cpysplf [...]
Retrieving system name using a CLP
How to retrieve the iseries or AS400 SYSTEM NAME USING A clp program?
Answer Question
| August 22, 2010 1:28 PM
CL, CL programs, CLP, iSeries
How to retrieve the iseries or AS400 SYSTEM NAME USING A clp program?
File pointer is being reset to the top in a CLP program
I am processing the *OUTFILE from a DSPOBJD command. Trying to create a logical file. When the CRTDUPOBJ fails the program loops to the RCVF command but the same record is being read again…WHY??
Answer Question
| September 26, 2008 4:44 PM
CLP, CRTDUPOBJ, DSPOBJD, File Pointer, RCVF
I am processing the *OUTFILE from a DSPOBJD command. Trying to create a logical file. When the CRTDUPOBJ fails the program loops to the RCVF command but the same record is being read again…WHY??
Is there a way to automate the ‘Receive Files from Host’ command’?
I need to automatically run the Receive Files from Host command after business hours. Is there a CLP command to accomplish this with an example? Thanks, LWK
Answer Question
| July 31, 2010 12:31 PM
CLLE, CLP, RPGLE, VB
I need to automatically run the Receive Files from Host command after business hours. Is there a CLP command to accomplish this with an example? Thanks, LWK
Immbedding parameters in CL program
Hi, I am having trouble immbedding parameters in a CL program with quotes, within a ADDJOBSCDE command. See below. ADDJOBSCDE JOB(&JOB) CMD(RUNC90JOB SEQ(*SUBJB) + PGM(UN798CL) PARM(”” *TCAT &PARM *CAT + ””)) FRQ(*ONCE) + JOBD(C90FILES/QBATCHASMD) JOBQ(QPGMR) The problem is with the 4 quotes the system adds a quote after the translation, which I do not want. [...]
Answer Question
| September 15, 2008 12:44 AM
Add Job Schedule Entry, ADDJOBSCDE, CL, CLP
Hi, I am having trouble immbedding parameters in a CL program with quotes, within a ADDJOBSCDE command. See below. ADDJOBSCDE JOB(&JOB) CMD(RUNC90JOB SEQ(*SUBJB) + PGM(UN798CL) PARM(”” *TCAT &PARM *CAT + ””)) FRQ(*ONCE) + JOBD(C90FILES/QBATCHASMD) JOBQ(QPGMR) The problem is with the 4 quotes the system adds a quote after the translation, which I do not want. [...]
Job Log
I am attempting to have the Job Log for a specific CLP end up in a specific output queue that is different from where we want the rest of the Job Logs to go. I have attempted to use OVRPRTF, CHGJOB and even set up a unique JOBD to no avail. Does someone have an [...]
Answer Question
| October 16, 2009 5:09 PM
CHGJOB, CLP, i5, iSeries, Joblogs, OVRPRTF
I am attempting to have the Job Log for a specific CLP end up in a specific output queue that is different from where we want the rest of the Job Logs to go. I have attempted to use OVRPRTF, CHGJOB and even set up a unique JOBD to no avail. Does someone have an [...]
What is the best way to execute SQL statements in a CL program.
What is the best way to execute SQL statements in a CL program. We can run sql statements in a RPG program. I want to delete some records from a file using the sql delete statement then organize it.
Answer Question
| June 22, 2011 5:24 PM
CL, CLP, SQL statements
What is the best way to execute SQL statements in a CL program. We can run sql statements in a RPG program. I want to delete some records from a file using the sql delete statement then organize it.
trim string values in rpg/400
how to trim string values in rpg/400 or RPGILE OR CLP
Answer Question
| May 4, 2010 1:22 PM
CLP, RPG/400, RPGILE, Strings
how to trim string values in rpg/400 or RPGILE OR CLP
how do “call” in RPGLE
how do “call” in RPGLE if program to call is clp with parameter
Answer Question
| April 28, 2010 12:25 PM
Call, CLP, RPGLE
how do “call” in RPGLE if program to call is clp with parameter
End Job
I have created a program (and clp) that works perfect. There’s just one little problem. I need for the clp to terminate after about 30 to 40 seconds. I did this over 10 years ago, but I have no idea on how. I have the object, but not the source to the original clp. Thank [...]
Answer Question
| April 26, 2010 8:48 PM
CLP, Command Line Processor, ENDJOB
I have created a program (and clp) that works perfect. There’s just one little problem. I need for the clp to terminate after about 30 to 40 seconds. I did this over 10 years ago, but I have no idea on how. I have the object, but not the source to the original clp. Thank [...]
How to change status line (24) from CL?
I’m trying to leave a status message on line 24 when my CL(LE) program is done. Unfortunately, as soon as the message appears, it vanishes! This CL submits a batch process, and my goal is to notify the user that they submitted it so that they don’t just keep doing it because they have seen [...]
Answer Question
| April 23, 2010 7:44 PM
CLLE, CLP, SNDPGMMSG, Status message
I’m trying to leave a status message on line 24 when my CL(LE) program is done. Unfortunately, as soon as the message appears, it vanishes! This CL submits a batch process, and my goal is to notify the user that they submitted it so that they don’t just keep doing it because they have seen [...]
I Put a HEX on youuuuuuuu……
Does anyone have any suggestions as far as reference material that would help me understand EBCDIC Character sets, Hex, Binary, and how you can tie them into CL’s & RPGLE’s, and whatnot?
Answer Question
| April 21, 2010 2:43 PM
Binary, CL, CLLE, CLP, EBCDIC, Hex, RPG, RPGLE
Does anyone have any suggestions as far as reference material that would help me understand EBCDIC Character sets, Hex, Binary, and how you can tie them into CL’s & RPGLE’s, and whatnot?
Complete backup via CLP
Isn’t it possible to wrap the commands issued via GO SAVE option 21 in a CLP and run it via job scheduled entry, assuming proper authority, etc.?
Answer Question
| May 19, 2008 10:58 PM
AS/400 backup, CLP, Command Line Processor
Isn’t it possible to wrap the commands issued via GO SAVE option 21 in a CLP and run it via job scheduled entry, assuming proper authority, etc.?
Collecting System Performance Values.
I need to get some values like total CPU usage, Number of active jobs by catagory, excessive CPU usage by a job (which may be looping), Jobs with messages waiting to be answered and similar information. I have to write these values to a file every five minutes. These values will be graphically displayed on [...]
Answer Question
| June 9, 2008 2:57 PM
Apigent Technologies, CLP, Job performance, System performance
I need to get some values like total CPU usage, Number of active jobs by catagory, excessive CPU usage by a job (which may be looping), Jobs with messages waiting to be answered and similar information. I have to write these values to a file every five minutes. These values will be graphically displayed on [...]
CLP to CLLE
How can I conver a CLP progra to a CLLE program
Answer Question
| April 13, 2010 2:52 PM
CLLE, CLP, iSeries development
How can I conver a CLP progra to a CLLE program
RCVF In CL
I am using nested RCVF to read PF’s in a CL program. The second iteration of the inner loop does not happen because the pointer is set to end of file. How do I reset the pointer to start at the begining? I have tried OVRDBF, OPNQRYF, POSDBF and deleting and recreating the PF. Thank [...]
Answer Question
| April 13, 2009 3:23 PM
CLP, OPNQRYF, OVRDBF, POSDBF, RCVF
I am using nested RCVF to read PF’s in a CL program. The second iteration of the inner loop does not happen because the pointer is set to end of file. How do I reset the pointer to start at the begining? I have tried OVRDBF, OPNQRYF, POSDBF and deleting and recreating the PF. Thank [...]
Writing an MQ message
I have to write a program that sends some data from MQ. I will read a data file process it, and then instead of populating a file and FTP’ing the file to a server. I need to send the data via MQ. How do I write the message to MQ, how do I set up [...]
Answer Question
| February 14, 2008 3:50 PM
CLP, MQ, RPG
I have to write a program that sends some data from MQ. I will read a data file process it, and then instead of populating a file and FTP’ing the file to a server. I need to send the data via MQ. How do I write the message to MQ, how do I set up [...]
Daily Job Suddenly Disappeared
Hello, We have job that runs in overnight batch Mon-Friday. The users access the reports the next morning. Suddenly, on 1/18/2008 the spooled reports for the job are no longer on the system. All previous jobs are there, but since this day the job has ran daily but none of the reports are kept-users cannot [...]
Answer Question
| March 9, 2010 3:10 PM
AS/400, CLLE, CLP, iSeries, parameter, RPG
Hello, We have job that runs in overnight batch Mon-Friday. The users access the reports the next morning. Suddenly, on 1/18/2008 the spooled reports for the job are no longer on the system. All previous jobs are there, but since this day the job has ran daily but none of the reports are kept-users cannot [...]





