CL/400 – How to convert Spool file to Notepad
Hello Friends, I have a question. In my current project, I have to covert a spool file to notepad and this notepad I have to send it as an attachment to one email address. Question 1: How can I convert spool file to notepad? Question 2: How can I send a notepad as attachment to [...]
Answer Question
| January 27, 2009 8:54 AM
AS/400 import/export, CL, CL/400, Spool files
Hello Friends, I have a question. In my current project, I have to covert a spool file to notepad and this notepad I have to send it as an attachment to one email address. Question 1: How can I convert spool file to notepad? Question 2: How can I send a notepad as attachment to [...]
How to check if email option is enabled on a AS/400 server
How to check if email option is enabled on a AS400 server
Answer Question
| January 24, 2009 10:15 AM
AS/400 administration, AS/400 email, CL, CL/400
How to check if email option is enabled on a AS400 server
Send a break message to multiple users
How to send a break message to multiple users.SNBRKMSG has the option to send it only to worksations.
Answer Question
| January 23, 2009 10:03 AM
CL, CL/400, Send Break Message, SNBRKMSG
How to send a break message to multiple users.SNBRKMSG has the option to send it only to worksations.
ALCOBJ scope
I want to allocate the dataarea by using ALCOBJ command and i am confused the in selecting the scope. Can anyone explain me abt the difference betwwen JOB scope and THREAD scope in details ?
Answer Question
| January 23, 2009 7:09 AM
ALCOBJ, Allocate Object, CL, CL/400, JOB scope, THREAD scope
I want to allocate the dataarea by using ALCOBJ command and i am confused the in selecting the scope. Can anyone explain me abt the difference betwwen JOB scope and THREAD scope in details ?
Maximum number of CL variables with IBM i 6.1
What is the maximum number of variables that you may define using the DCL command in a CL program on an IBM i version 6.1 system? Also: Where is this documented, if you know? I couldn’t find it in the online help, Information Center, or CL Programming PDF. Thanks!
Answer Question
| April 19, 2010 10:27 PM
AS/400, CL, CL programming, CL variables, DCL command, Declare CL Variable, IBM i, IBM i 6.1, iSeries, OS/400, System i
What is the maximum number of variables that you may define using the DCL command in a CL program on an IBM i version 6.1 system? Also: Where is this documented, if you know? I couldn’t find it in the online help, Information Center, or CL Programming PDF. Thanks!
RPG/400 – CL command to search a record like CHAIN opcode in RPG
Please advice we have any command there in CL to search or find a record like CHAIN opcode in RPG.
Answer Question
| December 30, 2009 6:43 AM
AS/400 Control Language, CHAIN, CL, RPG, RPG/400
Please advice we have any command there in CL to search or find a record like CHAIN opcode in RPG.
RPG/400 – How to check if record is reaching end of the file in CL
Please advice me how to chck record is reaching end of the file in CL.
Answer Question
| January 19, 2009 6:39 AM
AS/400 Control Language, CL, RPG, RPG/400
Please advice me how to chck record is reaching end of the file in CL.
Unable to override a PF member
Hi, I am trying to override a physical file using CL. The CL program is being called by a CBLLE program. In the CBLLE program, I want to process the overridden member.But,all the processing is going on the first member only.It looks like as soon as the CL program terminates DLTOVR gets executed automatically (though [...]
Answer Question
| October 22, 2011 1:31 PM
CBLLE, CL, DLTOVR, OVRDBF, PF, Physical File
Hi, I am trying to override a physical file using CL. The CL program is being called by a CBLLE program. In the CBLLE program, I want to process the overridden member.But,all the processing is going on the first member only.It looks like as soon as the CL program terminates DLTOVR gets executed automatically (though [...]
Not able to override a database file in CL
Hi, I am trying to override a physical file using CL. But,when I go and delete the override, I get an exception that it was never overriden. Any help will be highly appreciated
Answer Question
| January 16, 2009 1:13 PM
AS/400 Control Language, CL, DLTOVR, OVRDBF, Physical File
Hi, I am trying to override a physical file using CL. But,when I go and delete the override, I get an exception that it was never overriden. Any help will be highly appreciated
CL problem with purge
The below code was written to automatically purge files once in 2 months.The problem here is that there are months with 30,31 and 28 days so while deletion some files may be left out.Can this be rectified. CHGVAR VAR(&PYD) VALUE(&PYC) CHGVAR VAR(&PMD) VALUE(&PMC) CHGVAR VAR(&PDD) VALUE(&PDC) CHGVAR VAR(&PMD) VALUE(&PMD-2) IF COND(&PMD *LT 1) THEN(DO) CHGVAR [...]
Answer Question
| January 12, 2009 3:15 PM
CL, CL programming
The below code was written to automatically purge files once in 2 months.The problem here is that there are months with 30,31 and 28 days so while deletion some files may be left out.Can this be rectified. CHGVAR VAR(&PYD) VALUE(&PYC) CHGVAR VAR(&PMD) VALUE(&PMC) CHGVAR VAR(&PDD) VALUE(&PDC) CHGVAR VAR(&PMD) VALUE(&PMD-2) IF COND(&PMD *LT 1) THEN(DO) CHGVAR [...]
MSGW
Thank You for your reply But I need the process how I can write a program in order to get all the process to be done that is, giving opt7 & reply ‘G’ for a MSGW job. Or can I have any other process to do the same that means sending a reply to a [...]
Answer Question
| January 12, 2009 4:43 AM
AS/400 administration, CL, Message Waiting, MSGW, RPGLE
Thank You for your reply But I need the process how I can write a program in order to get all the process to be done that is, giving opt7 & reply ‘G’ for a MSGW job. Or can I have any other process to do the same that means sending a reply to a [...]
CL Program
Hello, Where do I write a CL Program in the iSeries? step by step. thanks
Answer Question
| January 8, 2009 4:35 PM
CL, CL programming
Hello, Where do I write a CL Program in the iSeries? step by step. thanks
ftp rpg
Hi I have called a program which would read the contents of the FTPLOG file member for successful transmission and sets an error flag ERR accordingly.Now i need to pass this value from the RPG to CL and use it to send a notification CALL PGM(FTPLOG) IF COND(&ERR *EQ ‘Y’) SNDUSRMSG MSG(‘FTP Transmission Failure,Please Transmit [...]
Answer Question
| January 8, 2009 3:17 PM
CL, FTP, FTPLOG, RPG
Hi I have called a program which would read the contents of the FTPLOG file member for successful transmission and sets an error flag ERR accordingly.Now i need to pass this value from the RPG to CL and use it to send a notification CALL PGM(FTPLOG) IF COND(&ERR *EQ ‘Y’) SNDUSRMSG MSG(‘FTP Transmission Failure,Please Transmit [...]
ftp in As400
OVRDBF FILE(OUTPUT) TOFILE(*LIBL/FTPSRC) + MBR(FTPLOG) FTP RMTSYS(’123.4.5.678′) DLTOVR FILE(INPUT OUTPUT) Can you let me know if the above code would write the FTP transmission details to file ftplog.
Answer Question
| January 8, 2009 3:14 PM
AS/400 FTP, CL, FTP
OVRDBF FILE(OUTPUT) TOFILE(*LIBL/FTPSRC) + MBR(FTPLOG) FTP RMTSYS(’123.4.5.678′) DLTOVR FILE(INPUT OUTPUT) Can you let me know if the above code would write the FTP transmission details to file ftplog.
How to strip comments from CL program?
Anyone know of a utility that will strip comments out of a CL program? We have many programs with more comments than actual code (for history purposes) and I’d like to see just the actual code. And no, I don’t want to RTVCLSRC and lose indentation, etc.
Answer Question
| December 14, 2011 8:06 PM
CL, CL Comment Stripping, CL programs, CL utility
Anyone know of a utility that will strip comments out of a CL program? We have many programs with more comments than actual code (for history purposes) and I’d like to see just the actual code. And no, I don’t want to RTVCLSRC and lose indentation, etc.
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
CL AND RPGLE
can i call an rpgle prog from a cl by passing parameters from cl. Also how do i debug these two sources which are of different types.I am not able to use strisdb to link the modules.
Answer Question
| January 4, 2009 1:13 PM
Calling an RPGLE program from CL, CL, CL Parameters, RPG, RPGLE, RPGLE Program
can i call an rpgle prog from a cl by passing parameters from cl. Also how do i debug these two sources which are of different types.I am not able to use strisdb to link the modules.
CL
In a CL code how to determine what are all the codes that require monmsg?
Answer Question
| January 2, 2009 10:19 AM
CL
In a CL code how to determine what are all the codes that require monmsg?
cl
DCL &TEXTFILENM *CHAR 40 dcl &curdt *char 6 dcl &curtm *char 6 /* build your CL file name as */ RTVSYSVAL SYSVAL(QDATE) RTNVAR(&CURDT) RTVSYSVAL SYSVAL(QTime) RTNVAR(&CURTM) ChgVar &TextFileNm (QDATE *TCAT QTIME *TCAT ‘.TXT’ CPYTOIMPF … To stream file . . . . . . . . . TOSTMF &TextFileNm Am able to build a string [...]
Answer Question
| December 31, 2008 9:45 AM
CL, CL programming, CPYTOIMPF
DCL &TEXTFILENM *CHAR 40 dcl &curdt *char 6 dcl &curtm *char 6 /* build your CL file name as */ RTVSYSVAL SYSVAL(QDATE) RTNVAR(&CURDT) RTVSYSVAL SYSVAL(QTime) RTNVAR(&CURTM) ChgVar &TextFileNm (QDATE *TCAT QTIME *TCAT ‘.TXT’ CPYTOIMPF … To stream file . . . . . . . . . TOSTMF &TextFileNm Am able to build a string [...]
cl
If i create txt files in as400 directory with naming convention AA20080101 can we purge these files using an AS400 command.
Answer Question
| December 31, 2008 2:23 PM
AS/400 command keys, AS/400 Directory, AS/400 Naming Convention, CL
If i create txt files in as400 directory with naming convention AA20080101 can we purge these files using an AS400 command.





