IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

Copy 5% of the data from the input file with Syncsort


IBM Mainframe Forums -> JCL & VSAM
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
mramesh

New User


Joined: 19 Feb 2005
Posts: 6

PostPosted: Wed Feb 09, 2011 8:23 pm
Reply with quote

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
View user's profile Send private message
enrico-sorichetti

Superior Member


Joined: 14 Mar 2007
Posts: 10873
Location: italy

PostPosted: Wed Feb 09, 2011 8:27 pm
Reply with quote

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
View user's profile Send private message
mramesh

New User


Joined: 19 Feb 2005
Posts: 6

PostPosted: Thu Feb 10, 2011 1:00 pm
Reply with quote

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
View user's profile Send private message
enrico-sorichetti

Superior Member


Joined: 14 Mar 2007
Posts: 10873
Location: italy

PostPosted: Thu Feb 10, 2011 1:11 pm
Reply with quote

for dfsort it could be done using the SAMPLE keyword/option
publibz.boulder.ibm.com/cgi-bin/bookmgr_OS390/BOOKS/ice1ca30/3.13?ACTION=MATCHES&REQUEST=sampling&TYPE=FUZZY&SHELF=ICE1SH31.bks&DT=20080528171007&CASE=&searchTopic=TOPIC&searchText=TEXT&searchIndex=INDEX&rank=RANK&ScrollTOP=FIRSTHIT#FIRSTHIT

check if something similar is also in syncsort
Back to top
View user's profile Send private message
Arun Raj

Moderator


Joined: 17 Oct 2006
Posts: 2481
Location: @my desk

PostPosted: Thu Feb 10, 2011 1:12 pm
Reply with quote

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
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> JCL & VSAM

 


Similar Topics
Topic Forum Replies
No new posts How to save SYSLOG as text data via P... All Other Mainframe Topics 2
No new posts Compare 2 files and retrive records f... DFSORT/ICETOOL 3
No new posts TRIM everything from input, output co... DFSORT/ICETOOL 1
No new posts FTP VB File from Mainframe retaining ... JCL & VSAM 8
No new posts Store the data for fixed length COBOL Programming 1
Search our Forums:

Back to Top