Why doesn’t the substring of a large field in CLLE program work correctly?
I have a CLLE program in which I pass two parameters, the first is a one character field, the second is a 600 character field. When run, the parameters come in correctly. But when I substring the second parameter into 40 fifteen character pieces it gives me a CPF0804 error half way through the string. [...]
Answer Question
| June 19, 2010 8:43 PM
CLLE, CPF errors, Substring
I have a CLLE program in which I pass two parameters, the first is a one character field, the second is a 600 character field. When run, the parameters come in correctly. But when I substring the second parameter into 40 fifteen character pieces it gives me a CPF0804 error half way through the string. [...]
MQ depth through CLLE Or RPGLE programs.
I am trying to search is there a way to know the MQ depth in RPGLE or CLLE programs using some set of MQ API’s or MQ command. It will be a great help for me if some one suggest a way out.
Answer Question
| May 17, 2010 6:26 AM
CLLE, MQ, RPGLE
I am trying to search is there a way to know the MQ depth in RPGLE or CLLE programs using some set of MQ API’s or MQ command. It will be a great help for me if some one suggest a way out.
writing the output of qshell(qsh) command to local data area
i want to write the output of a qshell command to local data area so that it could be globally used by programs.is there some way to write from stdout file to local data area I want it to be done through CL..its urgent thanks
Answer Question
| May 7, 2010 1:02 PM
CLLE
i want to write the output of a qshell command to local data area so that it could be globally used by programs.is there some way to write from stdout file to local data area I want it to be done through CL..its urgent thanks
Change attribute for CLLE program object
HI can i change the object attribute for a CLLE program to CLP (as in the case with a CLP we can change it to CLLE). SOmebody plz tell me how we can do that?
Answer Question
| April 16, 2010 10:40 AM
CLLE
HI can i change the object attribute for a CLLE program to CLP (as in the case with a CLP we can change it to CLLE). SOmebody plz tell me how we can do that?
remove a trigger file record lock
I have a CLLE trigger program that is trying to set a job environment. I am manipulating the LIBL on the fly based on the location of the order and if it’s TEST or LIVE. I get the info from the trigger input parms which has the order#, location, TEST or LIVE, order# and order [...]
Answer Question
| April 8, 2010 4:23 PM
CLLE, Record lock, RPGLE Program, TRIGGER
I have a CLLE trigger program that is trying to set a job environment. I am manipulating the LIBL on the fly based on the location of the order and if it’s TEST or LIVE. I get the info from the trigger input parms which has the order#, location, TEST or LIVE, order# and order [...]
CLE v/s CLP
What is the difference between CLE and CLP ?????
Answer Question
| February 25, 2010 6:51 AM
CLE, CLE v/s CLP, CLLE, CLP
What is the difference between CLE and CLP ?????
OVRPRTF not chaning OUTQ
I have a program where the OVRPRTF command does not seem to be taking affect. The output is going to the job’s default outq and not the overridden outq. The following are consecutive lines from the job log:
Answer Question
| January 21, 2010 2:12 PM
AS/400, CLLE, RPGLE
I have a program where the OVRPRTF command does not seem to be taking affect. The output is going to the job’s default outq and not the overridden outq. The following are consecutive lines from the job log:
Email message sent is printing 2 pages
I have written a process where a salesrep remotely orders a special item that we don’t normally carry and it signals the buyer to order it. When the item is ordered the system emails the salesrep. I use SNDDST with *LMSG with a short note stating the item has been ordered with item, vendor, customer and PO [...]
Answer Question
| November 30, 2009 3:16 PM
CLLE, RPG ILE, SNDDST
I have written a process where a salesrep remotely orders a special item that we don’t normally carry and it signals the buyer to order it. When the item is ordered the system emails the salesrep. I use SNDDST with *LMSG with a short note stating the item has been ordered with item, vendor, customer and PO [...]
CPD0304 when using SUBR and ENDSUBR in CLLE
I know I’ve run into this the past, but I can’t remember the fix. I am using V5R4 and trying to use CALLSUBR in my CLLE. I end my mainline with a RETURN, then I have a SUBR/ENDSUBR… and a 2nd SUBR/ENDSUBR.. then a ENDPGM. When the compiler hits the 2nd SUBR I get a [...]
Answer Question
| October 28, 2009 4:10 PM
CALLSUBR, CLLE, ENDSUBR, SUBR
I know I’ve run into this the past, but I can’t remember the fix. I am using V5R4 and trying to use CALLSUBR in my CLLE. I end my mainline with a RETURN, then I have a SUBR/ENDSUBR… and a 2nd SUBR/ENDSUBR.. then a ENDPGM. When the compiler hits the 2nd SUBR I get a [...]
writing record to a file through CLLE
Can we write a record to the physical file using CLLE?
Answer Question
| October 11, 2009 11:29 AM
CLLE, CLLE File Declaration, Physical Files
Can we write a record to the physical file using CLLE?
how to create new result field by concatinating two or more fields in OPNQRY.
Hi All, i want to create a new result field by concatinating two or more fields in OPNQRY for comparision. In detail: I have one tranaction file having millions on records however i want only records which were trasacted in last twodays. I have 3 seperate fields in trans file as TRYEAR, TRMONTH, TRDAY for [...]
Answer Question
| July 24, 2009 11:41 AM
AS/400, CLLE, OPNQRYF
Hi All, i want to create a new result field by concatinating two or more fields in OPNQRY for comparision. In detail: I have one tranaction file having millions on records however i want only records which were trasacted in last twodays. I have 3 seperate fields in trans file as TRYEAR, TRMONTH, TRDAY for [...]
Omitting parameters in CLLE
I was adding a couple of parameters and monmsg mch3601 to a CLLE function called from many and unspecified programs. To avoid it falling over I was being careful to ensure that the first executable code was a Chgvar / monmsg mch3601 of the parameter which may have been omitted on a call from an [...]
Answer Question
| July 24, 2009 2:37 PM
CLLE, MCH3601
I was adding a couple of parameters and monmsg mch3601 to a CLLE function called from many and unspecified programs. To avoid it falling over I was being careful to ensure that the first executable code was a Chgvar / monmsg mch3601 of the parameter which may have been omitted on a call from an [...]
How to print a Spool File?
Hi guys, Actually i’m stuck with printing the spool file. I’ve done a simple Screen(DSPF), Printer File(PRTF). For example: i have a screen then press any function key, eg:F9. When pressing the F9 it will call my program that generate a report which is store in Spool File(WRKSPLF). I’m just wondering when pressing F9, i [...]
Answer Question
| March 12, 2009 8:31 AM
CLLE, Display File, DSPF, Print Spool File, PRTF, Spool files, Work with Spooled Files, WRKSPLF
Hi guys, Actually i’m stuck with printing the spool file. I’ve done a simple Screen(DSPF), Printer File(PRTF). For example: i have a screen then press any function key, eg:F9. When pressing the F9 it will call my program that generate a report which is store in Spool File(WRKSPLF). I’m just wondering when pressing F9, i [...]
MSGW in WRKACTJOB
How to end a job in MSGW how we can give in a program all the proces to give OPT-7 in front of a job which is in MSGW & giving ‘G’ to end that in RPGLE /CLLE progrm that too in a scheduled time
Answer Question
| May 3, 2012 5:46 AM
CL, CLLE, Message Waiting status, MSGW, RPG, RPGLE, WRKACTJOB in AS400
How to end a job in MSGW how we can give in a program all the proces to give OPT-7 in front of a job which is in MSGW & giving ‘G’ to end that in RPGLE /CLLE progrm that too in a scheduled time
CLLE File Declaration
Can display File and PF be declared in a CLLE program
Answer Question
| December 17, 2008 2:19 PM
CLLE, CLLE DSPF, CLLE File Declaration, PF
Can display File and PF be declared in a CLLE program
CLLE program
I am new to AS400.I just learnt CLLE and i am facing the problem with the parameter that send from a RPGLE pgm to a CLLE pgm. The first pgm is to prompt the user to key in the date which is a numeic field. The coding for the first pgm is : FWKCFFM CF [...]
Answer Question
| September 13, 2010 4:43 PM
CLLE, RPGLE
I am new to AS400.I just learnt CLLE and i am facing the problem with the parameter that send from a RPGLE pgm to a CLLE pgm. The first pgm is to prompt the user to key in the date which is a numeic field. The coding for the first pgm is : FWKCFFM CF [...]
declare file
Are we still limited to one DCLF within a CLLE program?
Answer Question
| September 28, 2008 6:54 PM
CLLE, DCLF
Are we still limited to one DCLF within a CLLE program?
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
Did anyone use DATA structures In CL
As of V5R4 it is possible to use Data structures in CL similar to RPG. The most useful thing to use is for qualified commands where the qualifie parameter is a File and Libraray. but itl looks to me that it does not work when the parameter is a data structure and the program is [...]
Answer Question
| July 30, 2010 7:38 AM
CL, CLLE, Data structures
As of V5R4 it is possible to use Data structures in CL similar to RPG. The most useful thing to use is for qualified commands where the qualifie parameter is a File and Libraray. but itl looks to me that it does not work when the parameter is a data structure and the program is [...]
Nasty bug on new function of V5R4
as of V5R4 – DCL supports the STG (storage) keyword, which lets you designate how a variable’s storage is to be allocated. STG(*DEFINED) tells the compiler that a variable overlays all or part of another variable. You’ll also need to use the DEFVAR (defined on variable) keyword to tell which variable this new variable is [...]
Answer Question
| September 14, 2008 10:55 AM
CL, CLLE, DEFVAR, STG, V5R4
as of V5R4 – DCL supports the STG (storage) keyword, which lets you designate how a variable’s storage is to be allocated. STG(*DEFINED) tells the compiler that a variable overlays all or part of another variable. You’ll also need to use the DEFVAR (defined on variable) keyword to tell which variable this new variable is [...]





