View previous topic :: View next topic
|
Author |
Message |
mramesh
New User
Joined: 19 Feb 2005 Posts: 6
|
|
|
|
Hi,
My requirement is to copy the 5% of the data from the input file to output file. But i did not know the total count of the output file, Since it the daily processing file the output file count will vary...
For example,
My input file have 1000 records today , then my output file should contains 50 records.
It is possible to do it using SORT.
Thanks & Regards,
Ramesh.M |
|
Back to top |
|
|
enrico-sorichetti
Superior Member
Joined: 14 Mar 2007 Posts: 10873 Location: italy
|
|
|
|
do not double post the same question !
find out what sort product You are using so that we can delete the useless one
run the following job to determine the sort product You are using and its version/release
Code: |
//S1 EXEC PGM=ICEMAN
//SYSOUT DD SYSOUT=*
//SORTIN DD *
RECORD
/*
//SORTOUT DD DUMMY
//SYSIN DD *
OPTION COPY
/* |
if the messages start with WER continue discussing Your issue here
otherwise ( msgs starting with ICE ) continue on the DFSORT forum
Your other topic was deleted, provide the info i asked so that the topic can be
left/moved where it belongs |
|
Back to top |
|
|
mramesh
New User
Joined: 19 Feb 2005 Posts: 6
|
|
|
|
Hi,
I have submitted the sample job and it am getting the WER message....
Hope now we can continue the disscussion...
Regards,
Ramesh.M |
|
Back to top |
|
|
enrico-sorichetti
Superior Member
Joined: 14 Mar 2007 Posts: 10873 Location: italy
|
|
Back to top |
|
|
Arun Raj
Moderator
Joined: 17 Oct 2006 Posts: 2481 Location: @my desk
|
|
|
|
mramesh,
Do you want to filter the first 5 % of the records from input? You might probably need to create a dynamic card based on the input record count to achieve this.
enrico,
I think SAMPLE might not fit in for the OPs requirement as the output record-count is n't going to be fixed. Am I missing something here? |
|
Back to top |
|
|
|