difference between PL/1 and cobol while reading flat file?

HLASM for MVS. PL/I for MVS & Enterprise PL/I for z/OS.
Post Reply
utkarsh
Registered Member
Posts: 79
Joined: Fri Jun 21, 2013 10:32 pm
India

difference between PL/1 and cobol while reading flat file?

Post by utkarsh »

Any difference between PL/1 and cobol while reading flat file? One read statemnent can read one record in PL/1?
User avatar
zum13
Active Member
Posts: 127
Joined: Thu May 04, 2023 12:58 am

Re: difference between PL/1 and cobol while reading flat file?

Post by zum13 »

I'm not an expert on PL/1, but yes, one READ gives one record.
utkarsh
Registered Member
Posts: 79
Joined: Fri Jun 21, 2013 10:32 pm
India

Re: difference between PL/1 and cobol while reading flat file?

Post by utkarsh »

Thanks. I was just trying to learn PL/I my own.

Not sure if we can practice PL/I at home? Are there some ways to create an environment?
User avatar
zum13
Active Member
Posts: 127
Joined: Thu May 04, 2023 12:58 am

Re: difference between PL/1 and cobol while reading flat file?

Post by zum13 »

There is an old PL/1 compiler that will run under MVS 3.8j so you can run it under the Hercules mainframe emulator. While it's a long obsolete version of the compiler (if I recall correctly, it dates from the OS/360 era), it should be enough to practice the basics although you obviously won't have access to newer features.

Someone did attempt an open source PL/1 frontend for GCC. It hasn't been updated since 2007, so it looks like the project died a death. The last status update suggested it wasn't generating any object code and therefore wasn't very useful. The website is here: https://pl1gcc.sourceforge.net/

There's another open source one here for Windows: https://github.com/Steadsoft/PLI-2000

IBM did actually produce PL/1 compilers for both Windows and OS/2 under the VisualAge banner. It may be possible to find them on the usual abandonware sites.

I believe DEC also produced a compiler to run on OpenVMS. HP sold the rights to OpenVMS to VMS Software who ported the OS to x86 and they have continued the community licensing program so it can be obtained for free. However, there are no references to PL/1 in the documentation and suggestions elsewhere that it may have been discontinued long before the rights were sold. It would therefore be available on older versions, but the problem then is getting license keys to run it.

It you're willing to spend money, Micro Focus appear to have a compiler. They have specialised in providing environments for porting mainframe applications to PC hardware so it's logical that they'd have support for PL/1 as well as their more commonly talked about COBOL compilers.

It's worth going out and googling for PL/1 as there have been quite a few variations produced over the years that might come close to what you need as well has having fallen into the abandonware box.
Post Reply

Create an account or sign in to join the discussion

You need to be a member in order to post a reply

Create an account

Not a member? register to join our community
Members can start their own topics & subscribe to topics
It’s free and only takes a minute

Register

Sign in

Return to “Assembler & PL/I.”