TSO OGET
So yeah, youāve heard about this marvelous function in TSO calledĀ āOGETā. So instead of goingĀ āonlineā toĀ āread the docsā you decide to read the manual straight from your TSO session.....
You type: TSO HELP OGET and are presented with page after page of text. I hate to bring it to you guys at IBM but thereās a little typo there.
Did you spot it too?
If you canāt find the typo, thereās a very simple mehtod to find it :)
If you donāt wanna read all the docs (and hunt for more typos) the TL;DR for using OGET is:
OGET /path/to/fileĀ āSOME.PDS.OR(MEMBER)āĀ
This will copy the contents of that file into a dataset or member. There are various options to set the āAccess mehtodā of the copy operation.
Convert ASCII/EBCDIC with or without custom translate tables, you name it OGET has it all...
Slight caveat might occur when you use the resulting dataset in your JCL. It will most likely be written in variable blocked 251 bytes records.
To circumvent this use a pre-allocated dataset with DCB data to your liking. IEFBR14 seems to be a good program for that (however IEFBR14 is not actually doing the allocation, as this is performed by JES, but thatās something for another time.....)












