rajeshwarch
New User
Joined: 24 Mar 2008 Posts: 29 Location: mumbai
|
|
|
|
Hi everybody,
I need to prepare a dynamic sort control card. The input file having Numeric values from 255 position to 3000. Each data item is of length 9. the number of items will vary, we have to read until spaces encounter. Below is sample record from the 255th position.
123456789123456789123456789987654321987654321
from this i have to prepare a control card like
SORT INCLUDE COND=(1,9,CH,EQ,C'123456789'),OR,
(1,9,CH,EQ,C'123456789'),OR,
(1,9,CH,EQ,C'123456789'),OR,
(1,9,CH,EQ,C'987654321'),OR,
(1,9,CH,EQ,C'987654321') |
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19244 Location: Inside the Matrix
|
|
|
|
Hello,
Please provide a more clear description of what you want to accomplish. . .
Make up some test data that reflects your requirement and the output you want from that test data. Explain the rules for getting from the sample input to the output. Mention the relevant data positions, recfm and lrecl of both files (you should be able to use 40-byte records for demonstration - your "real" process would then be modified to accomodate 3000).
How will the list of values be provided? |
|