CL Programming Questions and Answers

Recent IT Questions

21 - 40 of 41

ovrdbf doesn't get deleted with a dltovr

I've got a cl that copies a PF file to qtemp then I use CRTDUPOBJ to get a LF attached to the qtemp PF file. Then ovrdbf of LF to qtemp/LF with OVRSCOPE(*JOB). After calling 2 programs to update the qtemp/LF I DLTOVR FILE(*ALL) LVL(*JOB). But the override stays doesn't get deleted. I can't figure...

View Answer   |  Jan 26 2009  7:21 PM GMT
OVRDBF, CL programming, PF
asked by Mtspudgun

  45 pts.

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!

View Answer   |  Jan 22 2009  10:27 PM GMT
CL programming, AS/400, OS/400
asked by I5os

  10 pts.

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 ...

View Answer   |  Jan 9 2009  3:15 PM GMT
CL, CL programming
asked by Anderson123

  840 pts.

CL Program

Hello, I have these queries on a job schedule now and, I want to export them to excel using CL.. PGM RUNQRY MYENTRIES1 RUNQRY MYENTRIES2 COPYTOIMPF FROMFILE(MYLIB/MYFILE1) (MYLIB/FILE2) ENDPGM Where do I send these two file to? and can I run both queries this way? thanks,

View Answer   |  Jan 8 2009  7:57 PM GMT
CL programming, AS/400 queries, AS/400 import/export
asked by Querys

  100 pts.

CL Program

Hello, Where do I write a CL Program in the iSeries? step by step. thanks

View Answer   |  Jan 8 2009  4:35 PM GMT
CL programming, CL
asked by Querys

  100 pts.

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 ...

View Answer   |  Dec 31 2008  9:45 AM GMT
CL, CPYTOIMPF, CL programming
asked by Anderson123

  840 pts.

cl

i have a flat file. data is populated to this file on a daily basis. I need to create a new member every day as and when the flat file is populated.In my cl code I tried using AA *cat &qdate in addpfm and build the name of the file but couldnt do so...As stated earlier i neeed this to purge members...

View Answer   |  Dec 23 2008  2:58 PM GMT
CL, CL programming
asked by Anderson123

  840 pts.

cl

Hi 1.I need a cl code that will purge text files that are more than 3 months old...text files will be created with the date of creation suffixed to the filename... 2.If the above is not possible will i be able to create flat file members and purge those file members.

View Answer   |  Dec 22 2008  3:53 PM GMT
CL, CL programming
asked by Anderson123

  840 pts.

Need a CL to be written

Hi I need a cl to be written;The requirement is as follows There will be files created with naming convention INV20081219 or members within files. Now i need a program that will automatically delete files that are more than 3 months old.

View Answer   |  Dec 19 2008  3:21 PM GMT
CL, CL programming
asked by Anderson123

  840 pts.

CL SysDate Conversion

Hi I have converted the sys date to *CYMD format.I have two problems, 1.For eg 19/12/08 is now 1081219,where 1 stands for 2000-2050 and 0 stands for 1900 to 1999(defined in system).But i want to map this with dates in file whose format is 20081219. 2.If this is possible i need to subtract the...

View Answer   |  Dec 19 2008  3:15 PM GMT
CL, CL programming, CL SysDate Conversion
asked by Anderson123

  840 pts.

Java User Profile Usage

On the I-series, I hava a java application being run within a CL program using the RUNJVA command. How can I get the java app to use a different user profile/job description than the CL program itself.

Answer Question   |  Dec 17 2008  2:26 PM GMT
Java, CL programming, Java applications
asked by Developer55

  5 pts.

Spell check in CL on AS/400?

How do you do spell check on CL?

View Answer   |  Dec 10 2008  9:29 PM GMT
AS/400, Spell checkers, CL programming
asked by AS400 - Ask the Expert

  395 pts.

protect_lines backarrow drags protected text down into editable area

I have used CL_GUI_TEXTEDIT class to create a custom control for text entry. I am using the PROTECT_LINES method to afix a date/time stamp and then make it non-editable. The problem is, when I am in the editable area and I hit back-arrow until the cursor jumps up to the end of the protected...

Answer Question   |  Dec 1 2008  5:04 PM GMT
CL programming, CL_GUI_TEXTEDIT
asked by Ratherbjammin

  10 pts.

managing authorization list

a long time ago, I retrieved a CL from this site to manage authorization list. It displayed all the list to an output file and the CL uses the input file to properly balance the users and objects authority. Does anyone have something similar?

View Answer   |  Nov 20 2008  5:01 PM GMT
Secure Coding, CL programming, CL Input File
asked by Getitright

  5 pts.

Highlighting or sending colored text from CL to QSYOPR

Is it possible to send a break message or User Message from a CL Program to QSYSOPR message queue with highlighted text or in different color? The purpose of this is to catch the operators attention to this message from other normal messages.

View Answer   |  Nov 11 2008  5:42 PM GMT
AS/400, QSYSOPR, CL programming
asked by AS400 - Ask the Expert

  395 pts.

strpccmd

CL program uses this command to download file from AS/400 machine on to the PC using TTO.But download is not happening properly.can someone help?

View Answer   |  Nov 5 2008  2:02 PM GMT
CL, CL programming, STRPCCMD
asked by Sumedhah

  5 pts.

WRKQRY

How do I create CL program that will execute WRKQRY command?

View Answer   |  Oct 16 2008  7:57 PM GMT
CL, CL programming, WRKQRY
asked by Chardyjr

  45 pts.

To use Arithmetic operations in Cl program

Hi, i am fresher for AS400.I dont know how to retreive a sysval using arithmetic operations in cl programming and too storing in a dataarea and displaying the result through msg

View Answer   |  Oct 14 2008  12:56 AM GMT
CL/400, CL programming
asked by S85

  5 pts.

Pointer In CL

How we point the particular record in file on the base of key in CL Programming.

View Answer   |  Sep 25 2008  11:48 AM GMT
Pointers, CL, CL programming
asked by Goyalp4

  20 pts.

Reading IFS file from CL program

I have a requirement of reading a IFS file from CL program. As far as I know there is no direct way of achieving this. I am planning ot use CPYFRMSTMF followed by CPYF to copy the IFS file first as a memeber and then as a database file. Is there any better way to achieve this? Regards Sudip

View Answer   |  Aug 4 2008  1:42 PM GMT
IFS, CL, CPYF
asked by Raju400

  60 pts.

21 - 40 of 41