How to display a variable value in CLP
Similar to DSPLY in RPG, is there any command to display varibale value using CL program. I tried with DSPPGMVAR command in CLP, but its valid only in debug mode. Software/Hardware used: Iseries
Similar to DSPLY in RPG, is there any command to display varibale value using CL program. I tried with DSPPGMVAR command in CLP, but its valid only in debug mode. Software/Hardware used: Iseries
Programmatically (CLP) delete performance data.
How do I programmatically (CLP) delete all performance data except the current month's data? Software/Hardware used: 5722PT1
How do I programmatically (CLP) delete all performance data except the current month's data? Software/Hardware used: 5722PT1
Access the API using AS400
Hi, I would like to send the few tracking details in to the website and to get back the details from the web. The URl has special character like < > & " .(for passing the values to the web) and more than 200 of length. i would need to know is there any way like using any CL/RPG/RPGLE...
Hi, I would like to send the few tracking details in to the website and to get back the details from the web. The URl has special character like < > & " .(for passing the values to the web) and more than 200 of length. i would need to know is there any way like using any CL/RPG/RPGLE...
Calling a URL length more than 200 from CLP
Hi Techies, I would like to call a URL by passing some input values and retrieve some values from the results. 1. The URL lenght is more than 200, with special characters like % " < / > 2.I need to retrieve values from the particular website. Can u please help me out soon, its been getting...
Hi Techies, I would like to call a URL by passing some input values and retrieve some values from the results. 1. The URL lenght is more than 200, with special characters like % " < / > 2.I need to retrieve values from the particular website. Can u please help me out soon, its been getting...
How to detect a non empty physical file using CLP
How can I detect a non empty phyiscal file using CL Software/Hardware used: iseries , CLP (command language program)
How can I detect a non empty phyiscal file using CL Software/Hardware used: iseries , CLP (command language program)
QSH on two differnet iSeries
Hello Everyone, I'm working with two different iSeries boxes. Using a CL program, I execute a QSH similar to this: STRQSH CMD(&COMMAND) &COMMAND is a string built inside the CL Program. When I call the CL program on the first box (call it DEV) it runs fine. When I call the CL program...
Hello Everyone, I'm working with two different iSeries boxes. Using a CL program, I execute a QSH similar to this: STRQSH CMD(&COMMAND) &COMMAND is a string built inside the CL Program. When I call the CL program on the first box (call it DEV) it runs fine. When I call the CL program...
How to read a PF from bottom up?
Wihtout using a LF how can i read a PF from bottom to up in cobol. If i use posdbf(*last) in clp then how to proceed after that ? Software/Hardware used: as400
Wihtout using a LF how can i read a PF from bottom to up in cobol. If i use posdbf(*last) in clp then how to proceed after that ? Software/Hardware used: as400
When submitting a procedure via CL program, i do not get any abnormal end message.
When submitting a procedure via CL program, i do not get any abnormal end message even though the procedure has not not completed normally, is there anyway by which we can find the cause of the failure of the completion of the procedure normally. Software/Hardware used: procedure CLP systemi...
When submitting a procedure via CL program, i do not get any abnormal end message even though the procedure has not not completed normally, is there anyway by which we can find the cause of the failure of the completion of the procedure normally. Software/Hardware used: procedure CLP systemi...
Using the command RCVMSG
There are numerous reports which automatically print throughout the day. Often there may be a message waiting on the printer and because no one was expecting any reports, no one discovers the problem until hours later. (By this time there may be quite a few reports waiting to print) I was...
There are numerous reports which automatically print throughout the day. Often there may be a message waiting on the printer and because no one was expecting any reports, no one discovers the problem until hours later. (By this time there may be quite a few reports waiting to print) I was...
Ending a job through CLP
I am trying to end a job using ENDJOB command from a CL program submitted to batch, but this does not end the intended program and emits an error some kind meaning "Not allowed". I made user that the profile has enough preveliges. Any idea how to end a job through batch? Software/Hardware used:...
I am trying to end a job using ENDJOB command from a CL program submitted to batch, but this does not end the intended program and emits an error some kind meaning "Not allowed". I made user that the profile has enough preveliges. Any idea how to end a job through batch? Software/Hardware used:...
Meaning of USER MOD FLAG generated in RTVCLSRC
The source generated from the RTVCLSRC command has some header comments which give some information about the CL program. One comments has; "User mod flag . . . . . . . . . . . . . : *YES" . I can't determine what this means or refers to. Any ideas? ...
The source generated from the RTVCLSRC command has some header comments which give some information about the CL program. One comments has; "User mod flag . . . . . . . . . . . . . : *YES" . I can't determine what this means or refers to. Any ideas? ...
Retriveing massage from submited job in CLP
I have CLP and a cobol program. CL program calls the cobol program in Batch mode by doing SBMJOB. The cobol program processing 1000 records from a database file. If it founds errorneous record in the time of processing, then it stops processing with a system generated error massage and control go...
I have CLP and a cobol program. CL program calls the cobol program in Batch mode by doing SBMJOB. The cobol program processing 1000 records from a database file. If it founds errorneous record in the time of processing, then it stops processing with a system generated error massage and control go...
AS/400 Program To List Physcial Files with Deleted Records
We currently have a program to list Physical Files with Deleted Records. The CLP utilizes the DSPFD command to build an out-file. The parameter for 'Type of Information' is *MBRLIST and 'File Attributes' is *PF. However, the out-file lists the data at the member level. Also, teh job takes TOO LONG...
We currently have a program to list Physical Files with Deleted Records. The CLP utilizes the DSPFD command to build an out-file. The parameter for 'Type of Information' is *MBRLIST and 'File Attributes' is *PF. However, the out-file lists the data at the member level. Also, teh job takes TOO LONG...
Database Creation using CLP
Hello Everybody, I have a small question. First I will explain my requirement. Requirement: I have a database file let’s say “PF1”; I am fetching some records from this file based on some criteria. This fetched record I have to write to one database file “PF2” (This contain six...
Hello Everybody, I have a small question. First I will explain my requirement. Requirement: I have a database file let’s say “PF1”; I am fetching some records from this file based on some criteria. This fetched record I have to write to one database file “PF2” (This contain six...
FTP through CLP program
Hello, I have a script written for 'INPUT' file during the FTP process. The user-id and the password are being hardcoded in the script.To maintain the security I want to encrypt the password alone in the script.May be when the FTP is in action, the password can be retrieved from a file or data...
Hello, I have a script written for 'INPUT' file during the FTP process. The user-id and the password are being hardcoded in the script.To maintain the security I want to encrypt the password alone in the script.May be when the FTP is in action, the password can be retrieved from a file or data...
Best way to retrieve values, SQL or Queries and how?
Hello everybody, my problem is, in a iseries i have ia file and in this file exist one field with 10000 lenght (character) and i want retrieve a value like ( 60F: ) but i don´t know in what position, after i find this value i need the follow values. ex: this is a part of one record {4: ...
Hello everybody, my problem is, in a iseries i have ia file and in this file exist one field with 10000 lenght (character) and i want retrieve a value like ( 60F: ) but i don´t know in what position, after i find this value i need the follow values. ex: this is a part of one record {4: ...
How Can I pass multiple USER ID's to QEZSNDMG
Does anyone have an example of passing multple user id's to the API QEZSNDMG? I have a CL that calls QEZSNDMG and it works fine with one user or *ALLACT. I need to supply a list of multiple users that I can pass to it. Anyone have an example of that? Software/Hardware used: CLP on iSeries
Does anyone have an example of passing multple user id's to the API QEZSNDMG? I have a CL that calls QEZSNDMG and it works fine with one user or *ALLACT. I need to supply a list of multiple users that I can pass to it. Anyone have an example of that? Software/Hardware used: CLP on iSeries
Truncating parameters!
I haev a 6 position alpha variable that has a value of '12345 ' (a trailing blank). When I submit a job that does a CALL to a pgm with that variable as a parm, the submitted job has the value of that parm as '12345' with no trailing blank. Both pgms declare the variable as 6 *CHAR. I know there are...
I haev a 6 position alpha variable that has a value of '12345 ' (a trailing blank). When I submit a job that does a CALL to a pgm with that variable as a parm, the submitted job has the value of that parm as '12345' with no trailing blank. Both pgms declare the variable as 6 *CHAR. I know there are...
AS/400: Close open files
Dear sirs, could you please help me with the following problem: I want to close all open files that are left open from previous different steps (pgms rpg , rpgle , clp) that were run. I have tried to use a CLP pgm using RCLRSC, RCLRSC *CALLER with no success. Could you please advise me how to close...
Dear sirs, could you please help me with the following problem: I want to close all open files that are left open from previous different steps (pgms rpg , rpgle , clp) that were run. I have tried to use a CLP pgm using RCLRSC, RCLRSC *CALLER with no success. Could you please advise me how to close...


