CL (IBM)

Comments Off on CL (IBM)

To write “Hello World!” in the CL (IBM) programming language, you can follow these steps using the command line interface:

  1. Open a terminal or command prompt on your system and launch an IBM i session with CL. You may need to use the ‘ssh’ or ‘telnet’ commands for this purpose depending on your network setup.

  2. If not already present, create a new CL library by typing “CRTLIB LIB(yourLibraryName)” followed by Enter. Make sure to replace ‘yourLibraryName’ with the name of your choice (without enclosing quotes).

  3. Create a new source member inside your newly created library by typing “CRTSRC FILE(src_file) MEMBER(helloWorld)” where ‘src_file’ is the file name and can be any unique name. Replace it with something suitable for your needs. You could use the file name as the name of your CL program.

  4. Edit the new source member to include the code. Paste or type in the following code:
    (defun hello-world ()
    (write-line “Hello World!”)
    )

  5. Save and close the file, then recompile it by typing “SRCFILE(yourFile)” replacing ‘yourFile’ with the name of your source member. The compilation will output a compiled object called ‘helloWorld’.

  6. To run the program, use “RUNRULF(helloWorld())” without quotes and replace ‘helloWorld’ with the actual object name you got in step 5.

You should now see “Hello World!” printed on your screen confirming that your code is working correctly.

Prompt
young woman, beautiful face, standing, great body, gorgeous figure, long legs, pretty eyes, long hair, learns CL (IBM) programming language, beautiful background, magnificent scenery, Grisha Bruskin style, HD, sharp focus, stunningly beautiful, steampunk style, antique, mechanical, brass and copper tones, gears, intricate, detailed

Negative prompt
deformed, glitch, noisy, low contrast, anime, photorealistic, extra eyes, bad eyes, ugly eyes, imperfect eyes, deformed pupils, deformed iris, cross-eyed, poorly drawn face, bad face, fused face, ugly face, worst face, unrealistic skin texture, out of frame, poorly drawn hands, cloned face, double face, blurry, bad quality

Text model: neural-chat

Image model: PixelAhuskay