CL Questions


Accessing I/O Feedback Area of DSPF from within CL program
Is it possible from within a CL program to retrieve/access the I/O feedback area of a display file (the equivalent of retrieving INFDS (positions 401-404) from within an RPG program)?

Answer Question   |  June 29, 2011  8:34 AM
AS/400, CL, CL Program, Display File, DSPF, I/O feedback
asked by:
250 pts.

Write a CL to update all jobds on system
I need to write a CL that will change every jobd on our system w/o having to do it manually.

Answer Question   |  May 18, 2011  4:28 PM
AS/400 jobs, CL, CL Commands, CL Procedure, JOBD
asked by:
40 pts.

Data Structure in CL
Hi,     Upto my knowledge we cant use data structure in cl… Is it Possible? If it Possible then How?

Answer Question   |  October 31, 2011  7:29 AM
AS/400 database, CL, CL programming, Data structure
asked by:
510 pts.

CL Command definition parameter with Mixed valid values
Hello, I want to create a command with a parameter same as Stream file code page in CPYTOSTMF. It shoud allow only 1 – 32657, *STMF, *PCASCII, *STDASCII. Can someone explain how could I declare parameter to have this ? Thanks Sim

Answer Question   |  November 1, 2010  4:09 AM
AS/400, CL, CL Commands, CL Parameters, CPYTOSTMF, Stream files
asked by:
290 pts.

Reorganization of V5R4 while active
We are currently on operating system V5R4. We are a 24/7 shop and as a result, I have not had the opportunity to do a lot of reorgs. I just discovered there is a reorg while active command. Can someone tell me how to use this? Does this come with the operating system or is [...]

Answer Question   |  September 23, 2010  5:22 PM
CL, CLLE, CLP, RPG, RPG ILE, RPG/400, RPGILE, V5R4
asked by:
165 pts.

Recieving a diagnostic message in program
hi i want to recieve message text of diagostic message that encounters in program .I want it in a variable so that i can write it into a error log file .Please suggest a way to trap them and to have the text. i tried using RCVMSG but it dint wor out.   thanks

Answer Question   |  September 3, 2010  6:32 PM
AS/400, CL, CL Program, Network diagnostics and measurements
asked by:
420 pts.

SAVDLO command: Folder name
I am running an i5 with v5r4.  I am trying to same a given folder using SAVDLO *all FLR(‘QDLS/TempFlr’) but it keeps telling me the folder is not specified correctly or not found.  I can use WRKLNK and get to it just fine.  Suggestions?

Answer Question   |  May 7, 2010  9:08 PM
CL, ibm i5, SAVDLO, V5R4, WRKLNK
asked by:
5 pts.

CL error message
What is the full form of CPF in CPF0864 ????? Please Help……

Answer Question   |  April 20, 2010  7:53 AM
CL
asked by:
70 pts.

disply emp details on the screen
Hi , can any one of you share with me a sample code of a cl when a user enters a the employee ID on the screen read the emp table and display the employee details on the screen.

Answer Question   |  April 9, 2010  9:54 AM
AS/400, CL, DSPF, SDA
asked by:
10 pts.

call php script from CL – slow
Hello, i try to call a php-script on our 520. CHGVAR     VAR(&CMM) +                                                VALUE('/usr/local/Zend/Core/bin/php +                    /www/zendcore/htdocs/test.php') QSH        CMD(&CMD) i try to send an email in the php script and i was wondering why it takes about 5-8 seconds to send the mail. So i tried to find out where the script is slow. [...]

Answer Question   |  March 31, 2010  12:45 PM
CL, i5, PHP, Qshell
asked by:
30 pts.

AS400 CL, RPG TUTORIALS
Hi Can anyone sugguest a good website that provides free turtorials on CL & RPG. Mabey with PDF downloads. Thanks  

Answer Question   |  March 23, 2010  4:38 PM
AS/400, CL, RPG
asked by:
65 pts.

job status
we have one thousand jobs of which we have 4 critical jobs called jobA(emp), jobB(desig), JobC(sal), jobD(dept)  once jobA completes jobB kicks off and so on based on the job status i need to display a message on the user defined screen (DSPF) showing the current status  if   jobb is running “desig job is running” or if [...]

Answer Question   |  March 19, 2010  7:07 PM
as400 js WRKHSTJS, CL, SDA
asked by:
10 pts.

display file driven by cl
Is there a sample CL/SQL code on how to display a message on the screen based on the last record data in a table. there is a stat feild in my table for eg if stat is 1 then display test1 if stst is 2 then display test2

Answer Question   |  March 17, 2010  6:02 AM
CL, SQL
asked by:
5 pts.

CL Report priniting
I created a 4 pages report. When I print all the 4 pages prints in 2 papers. Its not prining in 4 pages

Answer Question   |  December 2, 2010  4:40 PM
CL, COBOL, Report format
asked by:
Ije
35 pts.

Emulator for practice
Hai friends, I am new to AS400.So i need to practise a lot at home.Can anyone suggest me free emulator to work in AS400,RPGLE etc. Thank you               

Answer Question   |  March 12, 2010  1:35 AM
AS/400, CL, RPGLE Training
asked by:
210 pts.

EMP
How would you achieve this requirement with out using RPG/RPGLE pgm,but by using only CL?Read a database file and display file contents on the screen when enter key pressed the next record should be displayed on screen.When the last record is reached or when F3 key is pressed the program should exit if the file [...]

Answer Question   |  February 1, 2010  10:33 AM
CL, RPG, RPGLE
asked by:
0 pts.

Using the command RCVMSG
There are numerous reports which automatically print throughout the day. Often there may be a message waiting on the printer and because no one was expecting any reports, no one discovers the problem until hours later. (By this time there may be quite a few reports waiting to print) I was trying to use the command rcvmsg (msgq qsysopr). [...]

Answer Question   |  May 25, 2010  2:23 PM
CL, CLP, CLPROGRAM, RCVMSG, RPG, RPG ILE, RPGLE, V5R4
asked by:
165 pts.

AS/400 Primary Language
Hi! I developed an application in CL and RPG and I want it to be multilingual. Is it possible to programmatically read the system primary language so I can use the same language for my application?[o:p][/o:p]

Answer Question   |  November 20, 2009  3:05 PM
AS/400 Primary Language CL RPG, CL, RPG
asked by:
15 pts.

data search using popup window
Is there a sample RPG/CL/SQL code on how to create a popup window to search data from a PF?

Answer Question   |  November 17, 2009  12:44 AM
CL, iSeries, Physical Files, RPG, SQL
asked by:
5 pts.

STRQMQRY in batch on i5
Can STRQMQRY be run in batch? I am getting error message: Global variable prompting is not allowed in batch mode. I am passing 2 parameters from a display screen

Answer Question   |  October 20, 2009  4:16 PM
CL, SQL, SQL development, STRQMQRY
asked by:
35 pts.