Hi All,
I have a requirement to read multiple GDG's (versions) of a mainframe file. The current design I am using is to FTP different GDG's , combine them using a funnel and then write to a dataset.
The question is , is there any way I could read the base mainframe file through an FTP stage, instad of using multiple FTP stages to read different GDG's and then combine them.
I tried specifying the base filename in FTP, and it failed with an error: filename not found. Any suggestions on whether we could directly read the base mainframe file instead of GDG's?
Thanks
Read Mainframe Base File
Moderators: chulett, rschirm, roy
-
- Participant
- Posts: 1
- Joined: Wed Jun 04, 2008 6:41 am
//SORT1 EXEC SORTD,CYL=600,TIME.SORT=120
//SORTIN DD DSN=PRD.PMKSxxx.SQ.BASEGDG,DISP=SHR
//SORTOUT DD DSN=PRD.PMKSxxx.SQ.FILETOFTP,DISP=(,CATLG,DELETE
// UNIT=TAPE9,DCB=(INDX,LRECL=24,RECFM=FB)
//SYSIN DD *
SORT FIELDS=COPY
END
/*
On Mainframe you can copy GDG's to one file (as above) quickly and FTP the single file.
//SORTIN DD DSN=PRD.PMKSxxx.SQ.BASEGDG,DISP=SHR
//SORTOUT DD DSN=PRD.PMKSxxx.SQ.FILETOFTP,DISP=(,CATLG,DELETE
// UNIT=TAPE9,DCB=(INDX,LRECL=24,RECFM=FB)
//SYSIN DD *
SORT FIELDS=COPY
END
/*
On Mainframe you can copy GDG's to one file (as above) quickly and FTP the single file.
-
- Participant
- Posts: 54607
- Joined: Wed Oct 23, 2002 10:52 pm
- Location: Sydney, Australia
- Contact: