IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

Decoding AFP Datastream, especially PTX line


IBM Mainframe Forums -> All Other Mainframe Topics
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
Mike 1304

New User


Joined: 15 Oct 2011
Posts: 46
Location: Germany

PostPosted: Sat Nov 12, 2011 7:52 pm
Reply with quote

Hi,

I want to convert a very simple AFP dataset to a plain text file.
No graphics or special formatting needed.
This must be done on a z/OS system.

Does anybody know a conversion program?
If not: I'll write my own conversion program in Cobol.

In the PTX line (X'D3EE9B'), where all the plain text is,
I found not only plain text, but also (I suppose) format control bytes.

Is there any manual I can read to understand the bytes?
So I can ignore them (for char set, bold, color)
or respect them (new line, new page).

I tryed to find something by google, but with no success.
Back to top
View user's profile Send private message
Bill O'Boyle

CICS Moderator


Joined: 14 Jan 2008
Posts: 2501
Location: Atlanta, Georgia, USA

PostPosted: Sat Nov 12, 2011 10:49 pm
Reply with quote

Mike,

If your site is licensed for AFP, then surely there should be utilities available for this type of conversion in the AFP Toolbox.

Did you check with your site administrator?

Why reinvent the wheel?

Mr. Bill
Back to top
View user's profile Send private message
Mike 1304

New User


Joined: 15 Oct 2011
Posts: 46
Location: Germany

PostPosted: Sun Nov 13, 2011 12:11 pm
Reply with quote

Thanks for your answer!

If there is a converion tool, it will of course be my 1st choice!

But in the description of AFP Tollbox I can't find a conversion tool.

All results from internet searches are running under Windows.
Back to top
View user's profile Send private message
dick scherrer

Moderator Emeritus


Joined: 23 Nov 2006
Posts: 19244
Location: Inside the Matrix

PostPosted: Sun Nov 13, 2011 8:49 pm
Reply with quote

Hello,

Quote:
This must be done on a z/OS system.
Why must this be "done" on a mainframe? If the needed "text" file is available on the mainframe, will this not meet the requirement?

Is this a one-time process or does it need to be run multiple times a day? If it is one-time for some document(s), you might consider downloading the AFP data to a Win-based system, converting this/these to plain text using available Win-tools, and then uploading the text version back to the mainframe.
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> All Other Mainframe Topics

 


Similar Topics
Topic Forum Replies
No new posts Write line by line from two files DFSORT/ICETOOL 7
No new posts Reading dataset in Python - New Line ... All Other Mainframe Topics 22
No new posts rewrite same SAY line CLIST & REXX 8
No new posts Merge files with a key and insert a b... DFSORT/ICETOOL 6
No new posts Repeat a DD line- comment and insert ... CA Products 3
Search our Forums:

Back to Top