DataLoader/MX Reference Manual (G06.24+)

Specifying File-Related Options for DataLoader/MX
DataLoader/MX Reference Manual525872-002
4-7
INDIRECT
probably not desirable. In such cases, you can supply a CONVERTIT or MISCn user
exit in which you can use the library function DTLEBCDICToASCII() to convert only the
fields that are character fields.
INDIRECT
Specify the INDIRECT interpretation to direct the file system to handle the contents of
a file as a list of file names. These file names can themselves have DataLoader/MX
features. This interpretation can be used in several ways:
Use a group of files as input by creating a text file called FILE1 that would look like
this:
/usr/mydata/myfile1(text)
/usr/mydata/myfile2(text)
/usr/mydata/myfile3(text)
Then include the INDIRECT interpretation in the -I parameter:
-I="FILE1(INDIRECT)"
DataLoader/MX reads each of these files in sequence.
Suppose that you have 10 tapes you need to use as input. Logically, they are a
single file. If they have standard labels, you can set up a DEFINE and read them
as a single file, transparently, because the Guardian file system automatically
switches from one reel to the next for the application and reports an end-of-file only
when it encounters the end of the last reel. To use the DEFINE name as the input
file, use the -I parameter at the OSS command line:
$ dataload...-I==TapeDefine
If the tapes are not labeled, you cannot make a DEFINE to use them together, and
the application gets an end of file status code at the end of each reel. One way to
solve this problem is to use the INDIRECT interpretation. Create a text file that has
the tape drive’s name on each line for as many lines as there are reels:
$TAPE(RECFORM=FB<RECSIZE=200>)
$TAPE(RECFORM=FB<RECSIZE=200>)
$TAPE(RECFORM=FB<RECSIZE=200>)
...
Use the INDIRECT option with your text file name, and DataLoader/MX reads each
tape, and then asks for a new tape to be mounted.
Use a group of output files as a single unit if you want to break down a large file
into a number of files, or if the input data is more than can be put into a single
Guardian file. To do this, create a text file and list the files in the order in which you
want them written. Specify the text file as the output file and specify the INDIRECT
interpretation. DataLoader/MX writes to the first file until it fills up or until the
number of records specified with the MAX modifier have been written to the file,
and then to the next file, and so on.