Focal Point
[SOLVED] How to read an external MVS/TSO file

This topic can be found at:
https://forums.informationbuilders.com/eve/forums/a/tpc/f/7971057331/m/5811059272

February 22, 2008, 12:44 PM
webmeister
[SOLVED] How to read an external MVS/TSO file
I have a FOCEXEC (in mainframe FOCUS) that I now need to modify so it can read an external file (VSAM, I believe). I don't have a master file description for the external file.

Can someone tell me what I need to do to enable my FOCEXEC to read this external file?

Thank you so much in advance....

This message has been edited. Last edited by: webmeister,


Mainframe FOCUS 7.0
VM/CMS and MVS/TSO
February 22, 2008, 01:36 PM
Leah
No, not really in my case, but you could create your own master if you had a 'copybook' of the layout of the file, Or have the administrator look into generating the MFD and access file if needed. (or are you the administrator? Smiler)

Of course there are other methods, of which someone may have a solution. I know one method used by a person here is to have a MFD with one record definition in it and then uses defines to break up the long alpha element. Not good for large files though.

-READ may be an option, I've never had to use it sad to say. Frowner


Leah
February 22, 2008, 02:45 PM
webmeister
Thanks Leah,

I got it figured out, by making my own MFD and using it to read the external file.


Mainframe FOCUS 7.0
VM/CMS and MVS/TSO
February 25, 2008, 10:02 AM
PBrightwell
You have to have an MFD to read an external file. Also, watch out for Occurs clauses. In FOCUS you work through those with ORDER. Or you can just define the multiple occurances with separate names. (FIELD1A, FIELD1B,etc)


Pat
WF 7.6.8, AIX, AS400, NT
AS400 FOCUS, AIX FOCUS,
Oracle, DB2, JDE, Lotus Notes