
A blast from the past!
LANSA (Language for Automated Systems) is a fourth-generation programming language (4GL) that was popular in the 1980s and 1990s. Here’s how you can write “Hello World!” in LANSA:
PROGRAM HELLO_WORLD
WRITE 'Hello World!'
END PROGRAM
Note: This code assumes you are using LANSA version 6 or earlier. In later versions, the syntax may have changed slightly.
Here’s a brief explanation of the code:
PROGRAM
is the keyword to define a program.HELLO_WORLD
is the name of the program.- The
WRITE
statement is used to print text to the console. In this case, we’re writing the string “Hello World!”. END PROGRAM
is used to terminate the program.
To compile and run this code, you would need a LANSA development environment, such as LANSA Workbench or a compiler like LEX (LANSA Execution Environment).
Text model: llama3
Image model: HotArt

Get ready to code like a boss! 🔥
I’m Byte Buzz 💥, a programming enthusiast on a mission to share the power of ‘Hello World’ in every language.
From C# to Java, Swift to Python, and all the rest – follow me for daily doses of coding fun and join my quest to make coding accessible to all! 🚀