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



Thanks for the reply...

What I did was create an internal DS and write using that.

dcl-ds scrnparms qualified;
a1 char(2) pos(2) inz('A1');
s1com# char(3) pos(5);
s1slot char(3) pos(2277);
dummy char(1) pos(2560);
end-ds;

write wk424r scrnparms;

The blunder I had was position of S1SLOT. I grabbed the ENDING position for the DS instead of the beginning.
Only wasted 4 hours on that today SMH.

Thanks,
Greg


-----Original Message-----
From: RPG400-L <rpg400-l-bounces@xxxxxxxxxxxxxxxxxx> On Behalf Of David Gibbs via RPG400-L
Sent: Monday, October 10, 2022 10: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

--
I'm riding in the American Diabetes Association's Tour de Cure to raise money for diabetes research, education, advocacy, and awareness. You can make a tax-deductible donation to my ride by visiting https://mideml.diabetessucks.net.

You can see where my donations come from by visiting my interactive donation map ... https://mideml.diabetessucks.net/map (it's a geeky thing).
--
This is the RPG programming on IBM i (RPG400-L) mailing list To post a message email: RPG400-L@xxxxxxxxxxxxxxxxxx To subscribe, unsubscribe, or change list options,
visit: https://lists.midrange.com/mailman/listinfo/rpg400-l
or email: RPG400-L-request@xxxxxxxxxxxxxxxxxx
Before posting, please take a moment to review the archives at https://archive.midrange.com/rpg400-l.

Please contact support@xxxxxxxxxxxxxxxxxxxx for any subscription related questions.

Help support midrange.com by shopping at amazon.com with our affiliate link: https://amazon.midrange.com

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.