GKatReliable
Programmer
We dial up a remote mainframe system from which we download a file with a randomly-generated filename. We have to then put this file in a folder on our network so our mainframe can pull it in. The JCL for our mainframe extract job has to have the filename hard-coded, naturally. How do I get the filename of the file we downloaded (I found $XFERFILE in the online help), especially if we get more than one file in a ZMODEM batch? My script has to figure out what file we got, and copy that to a network folder with a predetermined filename, then delete the file.
To make this even more entertaining, our remote vendor doesn't put an extension on the filename! The filename can be something like F0010899. Changes every time.
To make this even more entertaining, our remote vendor doesn't put an extension on the filename! The filename can be something like F0010899. Changes every time.