CL Questions and Answers

Recent IT Questions

81 - 100 of 199

CL

In a CL code how to determine what are all the codes that require monmsg?

View Answer   |  Jan 2 2009  10:19 AM GMT
CL
asked by Anderson123

  840 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

If i create txt files in as400 directory with naming convention AA20080101 can we purge these files using an AS400 command.

View Answer   |  Dec 30 2008  2:23 PM GMT
CL, AS/400 command keys, AS/400 Directory
asked by Anderson123

  840 pts.

cl

i have created a file member AA20081224 using addpfm.The file members will get created on a daily basis with that particular date appended to AA. I need a code that will check on a daily basis if there are file members that are more than 3 months old and purge all members except for the one...

View Answer   |  Dec 24 2008  9:43 AM GMT
CL
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.

decimal data error

i mean how to trap decimal data error in cobol\400.as we do monmsg command in cl ,is there any same way in cobol\400

View Answer   |  Dec 22 2008  1:38 PM GMT
CL, COBOL/400, Decimal Data Error
asked by Kapiltiwari

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

QSTRUP

Hi friends, I have the "JDEdwards Enterprise 1" on my system AS/400, and evertime after the IPL I execute this process by STRQSH. How can I configure this "runs" on my QSTRUP ?, I don´t know if this parameters below is correct; CALL PGM(QWAS6/QWASSTRSVR) PARM('-profilePath'...

View Answer   |  Dec 18 2008  7:22 PM GMT
IPL, CL, QSTRUP
asked by RBDSILVA

  295 pts.

OPNQRY and WRKQRY

In wrkqry there is an option to save the selected records to an output file.Similarly is there a way to use OPNQRY in a CL or in an SQLRPG to directly move the selected records to another file?

View Answer   |  Dec 13 2008  1:11 PM GMT
CL, SQLRPG, OPNQRY
asked by Anderson123

  840 pts.

Decimal data error

For testing an RPG program, I changed the CL program which submits the RPG program to a “call”. The change was to include a new parameter (numeric) to the RPG program. After testing, the Call was changed back to SBMJOB, but when tested again, the RPG program bombed with ‘decimal data...

View Answer   |  Dec 12 2008  6:36 PM GMT
RPG, CL, CL programs
asked by Moksha

  20 pts.

CL modification to retrieve the data in LDA

An application exists in production, which submits a job to do some business processing. The program gets invoked from a CL. The program is proprietary and does not have a source. It’s known that this program uses LDA while processing. How can the CL program, which submits the job, be modified to...

View Answer   |  Dec 12 2008  6:04 PM GMT
CL, CL programs, LDA
asked by Moksha

  20 pts.

STRPCCMD with blank in path

I am trying to start an Excel spreadsheet with a blank in the path. ex: STRPCCMD 'START K:\My Documents\GL\Monthend.XLS' I've tried all sorts of QUOTE scenarios but have not hit on the right set. Thank you MIS

View Answer   |  Dec 11 2008  2:21 AM GMT
Microsoft Excel, CL, AS/400 interoperability
asked by MurrayInfoSys

  570 pts.

Search for text within a string in CL/400

Wath function can I use to find a text into other? I mean how caon I find the Position for -B- in the text -AABAA-

View Answer   |  Dec 11 2008  0:28 AM GMT
CL, CL/400, AS/400 development
asked by Estebanguevara

  5 pts.

CL - Copy To Import File

I am using the CPYTOIMPF fromfile(PF) to STMF('dir\acp&txtfile') where &txtfile is &curdt *tcat &curtm.(system date and time) The stream file is created as acp&txtfile and what i want is acp120108100150.

View Answer   |  Dec 1 2008  10:13 AM GMT
CPYTOIMPF, CL, CL/400
asked by Anderson123

  840 pts.

AS/400 CL program - MSGW status

My requirement is I want to ensure that CL program enter into MSGW status after processing all the statements. What are the easiest ways to achieve this? (Without calling any programs from the CL)

View Answer   |  Nov 30 2008  6:54 PM GMT
CL, CL/400, AS/400 Control Language
asked by KumarPhani25

  5 pts.

QCMDEXC

What are the commands which can't be executed using QCMDEXC API?

View Answer   |  Nov 28 2008  4:48 PM GMT
CL, AS/400 Control Language, QCMDEXC API
asked by 6r

  155 pts.

Data Area in CL?

How to get data from Data Area using CL program code?

View Answer   |  Nov 28 2008  4:41 PM GMT
CL, CL/400, RTVDTAARA
asked by 6r

  155 pts.

TXT file naming using CL

Hi I hve created a txt file from a pf using cpytoimpf.The name of the txt file should have ccyymmddhhmmss in its name.I can retreive the date and time parameters from qdate and qtime.How do i name the txt file using a CL.

View Answer   |  Nov 25 2008  11:16 AM GMT
CPYTOIMPF, CL, CL/400
asked by Anderson123

  840 pts.

81 - 100 of 199