CL Questions and Answers

Recent IT Questions

21 - 40 of 199

How can I use FNDSTRPDM with CL

HOW CAN I USING "FNDSTRPDM" BY CLP AND THE VARIABLE OF "FIND 'string' " LAST CHARACTER IS A SPACE ?

View Answer   |  Jun 12 2009  10:30 AM GMT
FNDSTRPDM, CL, CLP
asked by TSCTHOMAS

  5 pts.

self-submitting cl pgm doesn't release screen

The interactive code in the CL pgm calls an RPG subfile pgm. The user makes selection, the CL pgm steps to the SBMJOB command, the CL pgm is executing the Batch portion, but the screen is hung up with "X system" displayed until batch job is done. The RPG is turning "ON" *inlr and RETURN is...

View Answer   |  May 29 2009  2:22 PM GMT
CL Program, CL
asked by Mccsteven

  30 pts.

CL DCL Initial Value

I have a program that assigns an initial value to a variable (&TYPE) in the declare statement (value of 'L'). Is there a difference in how that value is stored as an initial value versus the value loaded using the CHGVAR command? This variable is passed as a parameter to an RPG program and needed...

View Answer   |  May 27 2009  2:34 PM GMT
CL, DCL command, CHGVAR
asked by Jcov

  5 pts.

Convert Spool file to DB file

Hi, I have a spool file which I created by WRKACTJOB (*print).. Is it possible to convert the spool file format to a database file..... What does an OVRPRTF command do ...? Thanks, Yogesh

View Answer   |  May 18 2009  11:19 AM GMT
CL/400, WRKACTJOB, Spool files
asked by Cool400

  115 pts.

When I call CL by 3 parm. (' ') change to (')

When I call CL by use 3 parm like this command = CALL PGM(CTLMNUCUP) PARM('MENUA' '1' 'CALL PGMA ('')') In pgm it show Parm3 = 'CALL PGMA (') What the method I can solve? thk u.

View Answer   |  May 18 2009  6:59 AM GMT
CL Parameters, CL/400, CL
asked by Naveeya

  5 pts.

How to find out number of members in Source file ?

Hi All, i want to find out how many number of members are available in one source file. For example i have created one source file (QRPGSRC) in (LIBRARY1) now i want to find how many sources are available in LIBRARY1/QRPGSRC this source in my RPGILE program. Do we have any AS400 command or API...

View Answer   |  May 14 2009  9:15 AM GMT
RPGILE, CL, QRPGSRC
asked by Mohan K

  470 pts.

strsql

can you use the strsql command within an AS400 cl program?

View Answer   |  May 13 2009  2:37 PM GMT
STRSQL, CL, CL Program
asked by Pb54

  10 pts.

CL pgm required to copy data

I need to create a CL pgm to copy data from 2 files into one. The first file's name to be copied is constant but the second file's name changes on a daily basis. Could anyone help with the syntax required to do this? Thx

View Answer   |  May 11 2009  1:50 PM GMT
CL, CL programs
asked by KF

  35 pts.

Update a flat file through CL

Hi, I have copied a message from MSGQ into a CL variable. Is it possible to write that message in a flat fiile through CL.

View Answer   |  May 8 2009  1:21 PM GMT
CL/400, CL, Flat files
asked by Cool400

  115 pts.

How to Retrieve MSGW status in WRKACTJOB in CL variable

Hi, While Job monitoring if any job goes in MSGW status ... then is there any CL command which retrieves the status (exactly MSGW not *ACTIVE) and display it on the screen. Rather than doing manually job monitoring (Pressing F5 for a long time to look into the status of the job) if a CL can run...

View Answer   |  May 6 2009  1:13 PM GMT
CL/400, MSGW status, WRKACTJOB
asked by Cool400

  115 pts.

How i can display or print my CL commands

I everybody, i need print or display all commands that i have inside in my CL programs sources in QCLSRC? it is possible and how? thanks everybody.

View Answer   |  May 5 2009  6:23 PM GMT
AS/400, CL, CL programs
asked by BUG68

  80 pts.

Creating multiple files from a single code base and FTP.

This is a two part question. 1. I'm looking to use a COBOL program to create multiple files in a standard library. Is there a way to programatically write multiple files from a single program. I had someone indicate that I could call to CL instream and actually create multiple files on the fly. ...

View Answer   |  May 5 2009  2:52 PM GMT
AS/400 FTP, COBOL, CL
asked by Bew

  30 pts.

Program calls on AS/400

How i can check that my previous call to a program from other program was successful. Only after successful call and run only i can call another program. How to do check this in RPG and CL?

View Answer   |  Apr 28 2009  7:53 AM GMT
RPG, CL, RPG/400
asked by Ten2008

  730 pts.

OVRDBF Not working as supposed to

Here's the program flow CL1 calls RPG1 RPG1 calls CL2 CL2 has OVRDBF on fileA that is being used in RPG1 When the control gies back to RPG1, the file is not overriden. So I thought it might have ended at call level and I tried to do OVRDBF in RPG1 after the control come back from CL2 but still no...

View Answer   |  Apr 17 2009  6:12 PM GMT
OVRDBF, CL, RPG
asked by Jahan

  50 pts.

CPYTOPCD gettig an error in CL

Hello, This is my command in CL CPYTOPCD FROMFILE(QS36F/&SVPF) + TOFLR('c:\testfolder\text.txt') + TODOC(&SVPF) REPLACE(*YES) I get an error at run time. Error message as follows: 13308 - CPYTOPCD FROMF QCA ILE(QS36F/Y15162612) TO ...

View Answer   |  Apr 16 2009  8:51 PM GMT
CPYTOPCD, CL, CL Errors
asked by Lenny2113

  115 pts.

AS/400 user profile update

What is the CL code to DISABLE a number of AS400 profiles using a specific user list

View Answer   |  Apr 15 2009  9:01 AM GMT
CL, CHGUSRPRF, AS/400 user profiles
asked by Barrygg

  10 pts.

Retrieve pdf file through JAVA from IFS

How can I retrieve a pdf file stored on IFS generated by CL program through JAVA screen?

View Answer   |  Apr 14 2009  12:07 AM GMT
CL, IFS, Java
asked by Atul10

  15 pts.

how can we use more than 1 file in CL ?

Multiple files to used in CL

View Answer   |  Apr 13 2009  1:41 PM GMT
CL, CL programming
asked by Khadar

  90 pts.

How to retrieve the current version of AS400 you are working on?

Hi, Does anyone know how to retrieve the current version, release and model number of the AS400 box you are working on. We can view this information in spool files, but I want to retrieve this information through both CL and RPG program. Regards Shruti.

View Answer   |  Apr 6 2009  12:42 AM GMT
AS/400 Version, AS/400 upgrades, RPG
asked by Shrutigupta

  165 pts.

How to create a code using diff colors in RPG & CL

How to create a code using diff colors in RPG & CL

View Answer   |  Apr 3 2009  4:04 AM GMT
RPG, CL, RPG/400
asked by Ssaran

  205 pts.

21 - 40 of 199