On Thu, 12 Mar 2009 10:36:21 -0600, Howard Brazee <[email protected]> wrote:
>I need to create a routine that can be used with a bunch of different >extracts to split files into new files of 100,000 records each. They >need to be FTPd to the same location with different names, but I don't >want to create empty files on the mainframe nor on the destination >machine. > > > >What do you recommend? > A SAS program can do this in one job-step, reading the input file, determining what needs to be allocated (based on input file size), allocate the output files dynamically, write said output split files in one pass of input file, and then perform the FTP to send the split files, and if desired, generate an EMAIL report to send to someone who cares -- all in the same job-step, using one static-written SAS program (that invokes SAS macro language). Scott Barry SBBWorks, Inc. ---------------------------------------------------------------------- For IBM-MAIN subscribe / signoff / archive access instructions, send email to [email protected] with the message: GET IBM-MAIN INFO Search the archives at http://bama.ua.edu/archives/ibm-main.html

