Not if that's the extent of the code. For simple, short programs that do not warrant subprocedures, I start with /free but never write the /end-free.

By the way, regarding another question, Jon said many moons ago (here or in one of his articles, I can't remember) that in the subprocedure the *only* place that the name of the subprocedure is required is on the P-spec that begins the subprocedure. After reading that, I have since eschewed the procedure name on both the interface (PI) and the P-spec end statement. As he pointed out, it does make searching a lot cleaner (whether in PDM or WDSc).

Jerry C. Adams
IBM System i Programmer/Analyst
--
B&W Wholesale
office: 615-995-7024
email: jerry@xxxxxxxxxxxxxxx

-----Original Message-----
From: rpg400-l-bounces@xxxxxxxxxxxx [mailto:rpg400-l-bounces@xxxxxxxxxxxx] On Behalf Of Bryce Martin
Sent: Friday, January 08, 2010 3:16 PM
To: RPG programming on the IBM i / System i
Subject: RE: RPG V?

/end-free is not required?

Time to look at some language specs... sheesh.. where have I been?


Thanks
Bryce Martin
Programmer/Analyst I
570-546-4777



"Wintermute, Sharon" <Sharon.Wintermute@xxxxxxxxxxxxxxxx>
Sent by: rpg400-l-bounces@xxxxxxxxxxxx
01/08/2010 02:51 PM
Please respond to
RPG programming on the IBM i / System i <rpg400-l@xxxxxxxxxxxx>


To
"RPG programming on the IBM i / System i" <rpg400-l@xxxxxxxxxxxx>
cc

Subject
RE: RPG V?






Actually not. It is not required to have the /end-free. :)

But you would need:

*INlr = *On;

So it is still a wash.


Sharon Wintermute

-----Original Message-----
From: rpg400-l-bounces@xxxxxxxxxxxx
[mailto:rpg400-l-bounces@xxxxxxxxxxxx] On Behalf Of Bryce Martin
Sent: Friday, January 08, 2010 1:06 PM
To: RPG programming on the IBM i / System i
Subject: Re: RPG V?

Jon,
You missed your /end-free. Looks like a wash.


Thanks
Bryce Martin
Programmer/Analyst I
570-546-4777



Jon Paris <jon.paris@xxxxxxxxxxxxxx>
Sent by: rpg400-l-bounces@xxxxxxxxxxxx
01/08/2010 11:27 AM
Please respond to
RPG programming on the IBM i / System i <rpg400-l@xxxxxxxxxxxx>


To
rpg400-l@xxxxxxxxxxxx
cc

Subject
Re: RPG V?






"hard"?

PHP
===

<?php
echo 'Hello World';
?>

RPG IV /Free
============

/Free
Dsply 'Hello World';

That's one line less in RPG!


Sorry - couldn't resist!

Jon Paris

www.Partner400.com
www.SystemiDeveloper.com



On Jan 8, 2010, at 11:15 AM, rpg400-l-request@xxxxxxxxxxxx wrote:

I agree it would be hard to bring up data to a screen with RPG with
little
to no experience.(referring to the challenge using different
languages) All
you need is an echo statement with PHP.


This thread ...

Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2026 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.