Splitting the files using REXX



IBM's Command List programming language & Restructured Extended Executor

Re: Splitting the files using REXX

Postby MrSpock » Tue Mar 23, 2010 5:04 pm

That's an awful lot of data to chug through with REXX.

I'll leave with this. For COBOL search for any of the known methods of performing a dynamic allocation (BPXWDYN, PUTENC ,or IKJTSOEV and IKJEFTSR). Or, use your SORT to read through the data, find the record number where each new policy number starts, and have it generate a series of appropriate SORT control statements and the necessary DD statements for inclusion in a subsequent job, or optionally create and submit a whole new job.
User avatar
MrSpock
Global moderator
 
Posts: 810
Joined: Wed Jun 06, 2007 9:37 pm
Location: Raleigh NC USA
Has thanked: 0 time
Been thanked: 2 times

Re: Re: Splitting the files using REXX

 

Re: Splitting the files using REXX

Postby Robert Sample » Tue Mar 23, 2010 5:05 pm

COBOL actually has two ways to do dynamic allocation now: using environment variables or calling BPXWDYN. Environment variables aren't quite as flexible as BPXWDYN and may not provide you all the options you need for an output file. If you Google BPXWDYN, you can find plenty of documentation on it and how to use it. BPXWDYN is documented in the Unix System Services bookshelf manual Using REXX and z/OS UNIX System Services manual.
Robert Sample
Global moderator
 
Posts: 3376
Joined: Sat Dec 19, 2009 8:32 pm
Location: Dubuque, Iowa, USA
Has thanked: 1 time
Been thanked: 224 times

Previous

Return to CLIST & REXX

 


  • Related topics
    Replies
    Views
    Last post