× 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.



I have a vague recollection that you *can* use O-Specs if they are brought in as a /copy or /include.

Can't verify that at the moment but just something I recall having had to use long ago.


Roger Harman
COMMON Certified Application Developer - ILE RPG on IBM i on Power




-----Original Message-----
From: RPG400-L <rpg400-l-bounces@xxxxxxxxxxxxxxxxxx> On Behalf Of David Gibbs via RPG400-L
Sent: Monday, October 10, 2022 7:03 AM
To: rpg400-l@xxxxxxxxxxxxxxxxxx
Cc: David Gibbs <david@xxxxxxxxxxxx>
Subject: Re: Convert O-specs to free format

On 10/10/22 8:57 AM, Greg Wilburn wrote:
I'm working with some old programs that are using some techniques I'm
not 100% familiar with. They are using temp files to simulate screen
data so a process can run both interactively and in batch.

I am adding a procedure to the first RPG program, so I need to
replace the O-specs. What I've tried so far (writing a record to
WK424R) is not working. Looking for suggestions.

You can't convert O specs to free form directly, as there is no analog.

Based on your post, I think it would be best to convert that program
described file to an external data structure ... either defined as a PF
or a data structure in a copy member.

You could then use that structure to write to the temp file.

Alternatively, you could just pass the structure as a parameter to the
other program.

david


As an Amazon Associate we earn from qualifying purchases.

This thread ...

Follow-Ups:
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.