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



Hi Nick

What I've done is get the PF down to my PC using FTP or whatever - converted to ASCII in the process. Or you could maybe use CPY on the i5 - trevor should be proud of me - and put it on the IFS for your PC to read.

Now once it's in ASCII, the codes, like x'20' for normal and x'34' for some color or other will probably be changed to some ASCII equivalent - i've not looked into making my own translation table or anything.

What I've done is create a macro that finds the attribute bytes and the matching pairs - like high-intensity followed by some text then the normal byte - I take the text in between, set it to Bold, and replace the attributes with blanks.

Etc. - something like that. In order to figure out what bytes do what, I have gone to some display programming manual, I think - or I use a DSPF with all the possibilities in it, then capture IT and send it to the PC. Once this is done, you are good to go from then on.

You get to deal with colors and high intensity and reverse image and underline and all that - even non-display - I don't think column separators have attribute bytes - that's a setting for the whole display, it seems.

HTH
Good luck
Vern

At 03:02 PM 6/13/2007, you wrote:

Hi Vern,

I am used to working with STRCPYSCN, but have never saved them to a file.

I have done that now, but how do you get the data in a PF to a Word
document?

It looks pretty interesting.



Thanx,

Nick



Nick Radich
Sr. Programmer/Analyst
EPC Molding, Inc.
Direct (320) 679-6683
Toll free (800) 388-2155 ext. 6683
Fax (320) 679-4516
nick_radich@xxxxxxxxxxxxxx



vhamberg@xxxxxxxxxxx
Sent by: midrange-l-bounces@xxxxxxxxxxxx
06/13/07 02:40 PM
Please respond to
Midrange Systems Technical Discussion <midrange-l@xxxxxxxxxxxx>


To
Midrange Systems Technical Discussion <midrange-l@xxxxxxxxxxxx>
cc

Subject
Re: Viewing 5250 attribute bytes






Maybe an interesting alternative is to use STRCPYSCN and have it write
each screen to a PF - the attribute bytes are included. I've played some
with using this output to get nice screen captures in Word - with correct
underlines and colors and all that.

Vern

-------------- Original message --------------
From: "Douglas Handy" <dhandy@xxxxxxxxx>

> Steve,
>
> With all due respects to Doug I think the cure is worse than the
> > affliction. [smile] Flipping a little switch might have been (in
> > retrospect) the most UN-dumb way of having the feature available.
>
>
> Oh, I am well aware of the advantages of the old 5251 attribute switch,
or
> keyboard method in many newer terminals. I missed having the feature
> available, which is why I wrote my DspDspAtr attention handling program.
I
> don't consider it as nice as a hardware switch, but I think it beats
having
> nothing at all available. I also miss having each attribute byte's hex
> value immediately viewable when you toggle the switch, but the best I
could
> come up with is a method to instantly see where the attribute bytes are
at
> then request the hex value of any given attribute.
>
> It had been so long since I used this though that I had actually
forgotten
> about it. That's another advantage of the hardware switch...
>
> I use to mess with user defined streams and I'll probably spend a little

> > time with Doug's code because the subject is interesting. That stuff
> > doesn't normally come together nicely and I can imagine that Doug had
> > fun getting the code to where it worked. Well put together.
>
>
> It wasn't hard at all, since I was pretty familiar with the 5250 data
stream
> and what you can do with it. I used to output 5250 data streams directly

> from RPG II on the S/34 as learning exercises (never in production
code).
> DSM just makes it alot easier to implement some of this stuff. You can
do
> some neat things fairly easy with DSM, and this is a case in point.
>
> Doug
> --
> This is the Midrange Systems Technical Discussion (MIDRANGE-L) mailing
list
> To post a message email: MIDRANGE-L@xxxxxxxxxxxx
> To subscribe, unsubscribe, or change list options,
> visit: http://lists.midrange.com/mailman/listinfo/midrange-l
> or email: MIDRANGE-L-request@xxxxxxxxxxxx
> Before posting, please take a moment to review the archives
> at http://archive.midrange.com/midrange-l.
>
--
This is the Midrange Systems Technical Discussion (MIDRANGE-L) mailing
list
To post a message email: MIDRANGE-L@xxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/midrange-l
or email: MIDRANGE-L-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives
at http://archive.midrange.com/midrange-l.


--
This is the Midrange Systems Technical Discussion (MIDRANGE-L) mailing list
To post a message email: MIDRANGE-L@xxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/midrange-l
or email: MIDRANGE-L-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives
at http://archive.midrange.com/midrange-l.


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.