Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

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

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
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    Post subject: Copy 5% of the data from the input file with Syncsort
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

Global Moderator


Joined: 14 Mar 2007
Posts: 10278
Location: italy

PostPosted: Wed Feb 09, 2011 8:27 pm    Post subject: Reply to: Copy 5% of the data from the input file
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    Post subject:
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

Global Moderator


Joined: 14 Mar 2007
Posts: 10278
Location: italy

PostPosted: Thu Feb 10, 2011 1:11 pm    Post subject: Reply to: Copy 5% of the data from the input file with Syncs
Reply with quote

for dfsort it could be done using the SAMPLE keyword/option
http://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: 2285
Location: @my desk

PostPosted: Thu Feb 10, 2011 1:12 pm    Post subject:
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    IBMMAINFRAMES.com Support Forums -> JCL & VSAM All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Unable to copy data from spool in a d... srikant314 JCL & VSAM 2 Fri Jul 28, 2017 9:10 pm
No new posts Split file based on comparsion to 2 f... Div Grad DFSORT/ICETOOL 3 Thu Jul 27, 2017 9:16 pm
No new posts Paasing symbolic parameter to instrea... Robert Sample JCL & VSAM 2 Thu Jul 27, 2017 1:22 pm
No new posts Passing data from REXX to C programme... chong.zhou CLIST & REXX 3 Wed Jul 26, 2017 9:11 pm
No new posts Extra character appears in file when ... Balu5491 All Other Mainframe Topics 1 Wed Jul 26, 2017 2:39 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us