Archives

Length of CL Variables

March 10, 2010

... there an easy way to calculate the length of a string in CL , so I don't have to hard-code... in the thread came from the user named D esseT. Some very short and simple CL programs can be used... of data PARM Var + *X + MIN(1) + EXPR(*YES) + ...

Topics:
CL

Retrieve Environment Variables in CL

Q: I'd like my CL program to add some folders to the PATH environment variable that QShell uses. I... of an environment variable in a CL program! There are two solutions to your dilemma. The first... variables into a CL program and do the manipulations there. This technique has none of the ...

Topics:
Utilities
Unix
CL
Application Development

It's Easy to Run PHP, QShell, and PASE Tools from CL, Too!

... this utility one step further and making it available to CL programs. The Gist More and more... the UNIXCMD project aims to ... to launch a Unix command and attach it to your RPG or CL ... Files It's Easy to Run PHP, QShell, and PASE Tools from RPG Running ...

Topics:
Unix
CL
Application Development

CL Commands with SPCVAL((*CURLIB *CURLIB))

January 14, 2010

I was creating some new CL commands recently when I stumbled across a feature that I hadn't seen ... special value for a command parameter. When you do, the CL command interpreter automatically converts it to the actual current ... so I'm posting it here! Background In a simple CL command interface, you might code something like this: CMD PROMPT( Test ...

Topics:
CL
Application Development

Calling Windows ShellExec from CL

One of the most commonly asked questions in the System iNetwork forums always seems to be How do I open Windows application X from IBM i? How do I launch a browser? How do I display an image? How do I display a PDF? How do I open Microsoft Word for a docu ...

Topics:
Microsoft Windows
CL
Application Development

Using GnuPG for PGP on i

... secret key. If you want to automate this process with a CL program..., it's possible to automate the process by using a CL program or a shell script. If GnuPG has to ask you a question, the CL ...

Topics:
Unix
Encryption & Authentication
Data Access & File Transfer
CL
Application Development

Retrieve the Date Without Assuming

Recently, I've been reading a lot of CL code that was written by someone else. Frankly, I'm frustrated! Why do CL programmers insist on making assumptions about the format of the system ... matter, the job date? I see it time and time again: A CL program needs to retrieve the date... see why people make assumptions. ...

Topics:
CL
Application Development

Create your AFTER-UPGRADE Program

September 14, 2009

CRTLIB (Create Library) command to only allow the users in the group ADMIN to use the command. Remember the change you made to the command SMBJOB ? Have you changed the command defaults for any IBM supplied commands or other objects in library QSYS? I ...

Topics:
Systems Management
Security
Conversion/Migration
CL

Remove Unwanted Messages by Looping Through MSGKEY Values

September 10, 2009

Q: I have a CL program that calls a third-party program. That program leaves messages behind.... Knowing that, you could modify your CL program to write a message to its own call message queue... represents a ... languages on the system (including early versions of CL .... However, today's CL does support integers, and it also supports ...

Topics:
CL
Application Development

Finding the Right Control Language Command – Revisited Webwise

August 18, 2009

... I discussed the various ways that you can find CL .... I did not discuss the web based CL command finders that IBM has placed in the IBM Information Center for each ...

Topics:
Systems Management
CL

ProVIP Sponsors

ProVIP Sponsors