× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



You need to be on 7.1 and have PTF SI51094. If you are doing SQLRPGLE you need to be at PTF group SF99701 level 26


Scott

-----Original Message-----
From: RPG400-L [mailto:rpg400-l-bounces@xxxxxxxxxxxx] On Behalf Of Englander, Douglas
Sent: Wednesday, May 28, 2014 4:26 PM
To: rpg400-l@xxxxxxxxxxxx
Subject: Free format D spec question


I am trying the new free format D specs, and am having a problem. Here is a snip of my code:


d****** pmcncl 1

dcl-s tryit char(1);

d saveco s 3 0


Based on what I've read and what I've seen, this should compile. I think I can intermix free and fixed format D specs, and not need the FREE/END-FREE. Is that correct? When I compile this, I get an RNF0257 error on the free format D spec line. Here is a copy of the compile listing:


49 d****** pmcncl 1
50
51 dcl-s tryit char(1);
=====>a
RNF0257 30 a 005100 Form-Type entry for main procedure not valid or out of
sequence.
52

I am thinking OS/400 is not at the correct release. Can anyone tell me why this will not compile? Can someone tell me how to find out if the correct version of the compiler is installed on the machine I use? The dcl-s starts at column 9.

Thank you,

Doug

As an Amazon Associate we earn from qualifying purchases.

This thread ...

Replies:

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

This mailing list archive is Copyright 1997-2024 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.