CLP/CLLE Code Forum
Hello all... hope someone can give me a pointer with this: DCL VAR(&DAY) TYPE(*CHAR) LEN(2) RTVSYSVAL SYSVAL(QDAY) RTNVAR(&DAY) IF COND(&DAY *LT 7) THEN(....) When I try to compile this, I get "CPD0711 30 Operands in expression not same type." Since QDAY is a *CHAR, and 7 is not, is...
Apart from using API's QSNDDTAQ & QRCVDTAQ, Is there any command in AS400 to directly read/write into a Data Queue.
Hi All, Here I have one problem during restoration, if anyone could help that would be great. I am restoring a library via CLLE program in batch. During restoration if we give a new library name in RSTLIB parameter of RSTLIB command then journals and their receivers are not restored. ...
Hi, I've a query with type as *QRYDFN for this, I wanted to see Output Type of a query whether it's going to 1=Display 2=Printer 3=Database file It is possible if we see manually, however in case of many queries it's completely time consuming to see every query manually.
OK, I'm staring at things WAY too long ... what am I missing? This goes into an endless loop and just keeps sending the message to the QSYSOPR. I need to validated to continue or give option to cancel. TapeCheck2: SndPgmMsg msgdta( 'Mount tape and press G-Continue, C-Cancel' ) + ...
Since CL has been discontinued since the late 80's... I'm thinking about removing the CL forum... What do you Think? Jamie
Hi All, Could any one tell me how to retrieve or receive message in following scenario. Program A is calling program B Program B sends some message using SNDMSG to user (which is retrieved in program B), now when program B finishes it returns to program A. Here in program A I want to...
Ok.. I've created several ILE RPG procedures. I use them all the time in RPG programs. Like many, I use binding directories in the H-specs... nearly all of my procedures involve a return variable. NOW, I have the need to call a procedure from w/in some CL programs. The ILE RPG program returns...
I just want to select a particular record in Database file ... I think i can use Runqry DYNSLT ...but that is not the right process i think.. Can any one give me good IDEA THanks in advance venky
Hi Does anyone know how to wrap a line in FTP using an iSeries source file? The maximum length for a PDM viewable source file is 240 but the command may exceed this. Any ideas? Thanks.
Hi all Is any command is to find how many programs used particular physical file Thanx in Advance magesh
In cleaning up servers that are going to be retired, I have to do a ClrLib on QGPL --- BUT, I get the following message: CPA2129 -- Clearing or deleting system library QGPL. (I C) I have a MonMsg for it... but, it still forces this message. Any ideas on bypassing this?
hi! I'm new here guys... I just wanna know if its possible to insert a macro script in a clp program that i could call as a program? can i have a simple sample? or there's a better way? thnks u so much.... PGM 'macro script ENDPGM
I have a project where I send data over to a windows box which then processes it and dispenses drugs. I am able to telnet to a box and send data over successfully. Is there a printer configuration that has same communication properties as a telnet session? Or is there a way that I can program a...
Hello Team, Firstly let me thank you all in advance !!! I have one criteria for selection of records from a file using OPNQRYF.....I need to reteive the records which are of TMZA(file A) *GE &tmz2. TMZA is timestamp in file A and &date is variable declared in CL. Please find my code below :...
how can we trap error messege in cl other than monmsg?
Hi All, How to achieve in CLLE that XLATE or %XLATE does? My aim is to check if *ALL is coming as parameter in CLLE program, however user can pass either following ways during a call to CLLE *ALL, *All, *aLL, *AlL or *all etc It will not work if I check like this in CLLE, if parameter is...
Hi All, Could anyone please tell me, How to check environment variable values using command or is there any way to look? What is the command to see these variables? QIBM_QSH_CMD_OUTPUT QIBM_QSH_CMD_ESCAPE_MSG These commands are from CLLE program.
Has anyone else created such a beast? We're doing a migration of store servers and I'm creating a cleanup routine to push down, clean up and kill itself. Are there any issues with a program deleting itself? Or, do I just submit the job .. run the cleanup ... then submit a delayed command...
Hey Guys, I have a requirement to identify all the QRYDFN (WRKQRY objects) using a particular File. I mean the file in discussion is going to be changed and so the WRKQRY objects also needs some modifications. Is there a way to identify such objects? Thanks, Pranab..
Hello everyone Is there any way to get the QPED (job details) of the job who ended the subsystem ? :chain-gun: We can get by checking job log through command WRKUSRJOB, but we are having common profile which is being used by so many people. So, its difficult to track by checking joblog. ...
Hello fellow head-bangers....:duh I wrote a command to allow users to search through a file looking for specific values with 7 parms. The CPP is a CL using OPNQRYF to select the desired records then, an RPG to print a report which I then display to the user so they can see right away if they...
Hi all I have a program (CLP) what i want to run in remote system, when i call pgm in local everything is good, but when i use runrmtcmd the program caled, but got error message, decimal data error, but i dont know why, if in local the program working good, before i have problem cause the job...
How can I get the value of a CL program variable to display in the batch job's joblog without entering debugging mode? Anyone? Bueller? Thanks, John
Hi Gurus, I would like to know how to solve this problem and how does CL works with files, if 2 CL program is calling the same files. as i tested. once the CLprogram2 finish reading file A and return to CLprogram1. the point of the file will be at the end of file. Thanks
There are currently 1 users browsing this forum. (0 members & 1 guests)
Use this control to limit the display of threads to those newer than the specified time frame.
Allows you to choose the data by which the thread list will be sorted.
Order threads in...
Note: when sorting by date, 'descending order' will show the newest results first.
Forum Rules