CLP Questions


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
asked by:
40 pts.

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
asked by:
5 pts.

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
asked by:
95 pts.

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
asked by:
5 pts.

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
asked by:
30 pts.

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
asked by:
Lwk
25 pts.

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
asked by:
980 pts.

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
asked by:
2,480 pts.

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
asked by:
15 pts.

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
asked by:
Bu
60 pts.

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
asked by:
Iu5
5 pts.

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
asked by:
250 pts.

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
asked by:
4,990 pts.

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
asked by:
685 pts.

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
asked by:
25 pts.

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
asked by:
100 pts.

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
asked by:
5 pts.

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
asked by:
100 pts.

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
asked by:
55 pts.

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
asked by:
10 pts.