jeroc, You may be going about this the long way around.
We have several processes here where we ship complete PDS's to workstations or unix boxes (in ASCII format). The way we tackeld it was to use JCL to invoke FTP. This would require that you setup an FTP server on your windows machine. You would issue the LCD to connect to the PDS on the mainframe, and use CD to identify the directory on your target workstation. Do an MPUT to the target workstation or server from the mainframe. It will place the members as seperate ASCII files in the directory that you identified with the LCD command. One clean step and no having to manipulate a flat file into seperate files on your workstation.
Just for reference, here's what the JCL would look like.... In the PARM field on the EXEC card of the JCL, you put the IP Addr of the workstation you sending to. Also, before you run anything similar to this sample, remove the comments from of the SYSIN statements.
//FTPSTP1 EXEC PGM=FTP,REGION=2M,
// PARM='10.0.0.1' <======= CHANGE TO THE IP ADDRESS OF TARGET WORKSTATION
//STEPLIB DD DSN=TCPIP.SEZALOAD,DISP=SHR
//SYSFTPD DD DSN=TCPIP.SEZAINST(FTPSDATA),DISP=SHR
//SYSMDUMP DD SYSOUT=A
//SYSPRINT DD SYSOUT=*
//OUTPUT DD SYSOUT=*
//INPUT DD *
userid password /* Userid and passord you've set up in the FTP software on your workstation */
cd d:\TargetDirectory\ /*connects to the directory on the workstation */
lcd NAME.OF.THE.MAINFRAME.PDS /*connects to the PDS on the mainframe*/
noprompt /* without this, it would be a pain in the butt */
mput * /* this means Multi-put, it will send every member of the PDS to the workstation */