Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist 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: 10327
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: 10327
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 Getting ASP3 abend while retrieving d... Vedant CICS 0 Fri Oct 20, 2017 1:28 pm
No new posts Copy 4 byte of data from the last rec... arunsoods DFSORT/ICETOOL 9 Fri Oct 06, 2017 12:15 pm
No new posts opening a dataset after reading it fr... arunsoods DFSORT/ICETOOL 5 Wed Oct 04, 2017 3:54 pm
No new posts Execute JCL step based on the content... sprikitik JCL & VSAM 2 Tue Oct 03, 2017 10:03 am
This topic is locked: you cannot edit posts or make replies. PS file data should be passed as symb... d_sarlie JCL & VSAM 15 Tue Oct 03, 2017 5:18 am

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us