While calling a command via a CL program exposes my command line. Is it possible to hide the command line while executing the command via cl. I need to do this as iam executing the cl with adopted authority.
Thanks! We'll email you when relevant content is added and updated.
I have a CL program which will run as a SBMJOB. Now I want to see whether it is running in QBATCH jobq. If not in QBATCH, I have to resubmit it into QBATCH. How I can do it in CL?
Thanks! We'll email you when relevant content is added and updated.
I am using FNDSTRPDM command in my CL program for each file/field and running through RPG programs if the string is found. If I specify the wrong file (QRPGLESRC) and the program is found in QRPGSRC, I get the error PDM0055, which i can monitor. However, if the program is found and the string is...
Thanks! We'll email you when relevant content is added and updated.
I have a CL pgm in that i used the OVRDSPF command. Now i changed the display file. I'm sure i need to compile the RPG programs that are using the display file. Have a doubt if i need to compile the CL pgm or not?
Thanks! We'll email you when relevant content is added and updated.
We have nightly jobs that are queued up to release at 23:59 each night. Depending on how many are released at once, it may or may not make it into the jobq before midnight. The main CL program calls a second CL program after midnight. The called CL program uses the RTVJOBA command to get date....
Thanks! We'll email you when relevant content is added and updated.
[html xmlns=""> I am beginning my investigation to figure out how to use either a 400/COBOL program or a CL program to call an excel spreadsheet that requires three parameters to a calculation and to return a value back to my 400/COBOL program of CL program so that I then can use that value in my...
Thanks! We'll email you when relevant content is added and updated.
Hi, I'm setting up a process where I can add or delete a record in a physical file. I'm using a simple CL program that runs a couple QM Queries. QMQRY - REVEALADD INSERT INTO mylib/myfile (myfile) VALUES(user) QMQRY - REVEALDLT DELETE FROM mylib/myfile WHERE myfile = '&USER' CL code...
Thanks! We'll email you when relevant content is added and updated.
HI, I WANT HOW TO WRITE A CL PROGRAMME TO KNOW A USER IS LOGGED IN OR NOT.MEANS IN A SERVER NUMBER OF USERS OR THERE SO I WANT TO FIND OUT WHICH USER IS LOGIN STATE WHICH OR NOT LOG-OFF STATE.WHEN I RUN A PGM TO PROVIDE USER NAME IT WILL SHOW THE LOGIN OR LOGOFF STATUS...
Thanks! We'll email you when relevant content is added and updated.
I want to send a DB2 file via email from AS400 to MS outlook. I use command MMAIL/SENDMIMe inside my CL program. I've 2 issues. 1. whenever an email reaches to recipient, it attaches some .dat file which doesn't have anything in it. 2. the attachment is in notepad, it removes the readability of...
Thanks! We'll email you when relevant content is added and updated.
Everytime a batch job ended abnormally, it generates thousands of pages of job logs. The jobd is set to logclpgm *no, msg logging 4/0/*nolist. The job log has all the details of the record read between api programs. How can I make the job generate just the higher severity messages?
Thanks! We'll email you when relevant content is added and updated.
I need a little help! Is there anything out there that I can incorporate into a CL program that will download a database file to Excel with an xls extension so no further converting is necessary. I tried the CVTPFXLS but get Pointer not set for location referenced.
Thanks! We'll email you when relevant content is added and updated.