View previous topic :: View next topic
|
Author |
Message |
chitanya
New User
Joined: 25 Jan 2008 Posts: 6 Location: Hyderabad
|
|
|
|
Please let me know how to remove first and last record in sequential file using syncsort.
chaithu |
|
Back to top |
|
|
expat
Global Moderator
Joined: 14 Mar 2007 Posts: 8797 Location: Welsh Wales
|
|
|
|
DO NOT just park your question on the end of another topic.
Start your own topic
Which version of SYNCSORT are you using.
DSORG, RECFM and LRECL of the input files.
Are the first and last records distinguishable from the rest of the records.
Any other processing involved, like sorting data or what.
Please learn to give all of the relevant information required to help you. |
|
Back to top |
|
|
chitanya
New User
Joined: 25 Jan 2008 Posts: 6 Location: Hyderabad
|
|
|
|
Will not repeat the mistake again.
version of SYNCSORT for Z/OS is 1.3.2.1R
RECFM is fixed.
Rest all parameters will vary from one job to another job.
We can't distinguish first and last record.
My client need the first and last record to be skipped while loading file data into table.
Thanking you in advance,
Chaithu |
|
Back to top |
|
|
Ajay Baghel
Active User
Joined: 25 Apr 2007 Posts: 206 Location: Bangalore
|
|
|
|
Hi Chitanya,
Generaly, the details records should be distinct from the header and trailer records with data in some byte position. See which program is writing to that. Based on that, you can easily take out only the details records using sort include cond statement.
Thanks
Ajay |
|
Back to top |
|
|
chitanya
New User
Joined: 25 Jan 2008 Posts: 6 Location: Hyderabad
|
|
|
|
HI Ajay,
I asked my client to clarify regarding the same. I am yet to get reply.
Meanwhile i want to know is there a way to remove first and last record using SYNCSORT.
Regards,
Chaithu |
|
Back to top |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19244 Location: Inside the Matrix
|
|
|
|
Hello,
Suggest you use the code that works with ICETOOL. . .
If it does not work, post the informational or error messages generated by the run. Include the message id's. |
|
Back to top |
|
|
Anuj Dhawan
Superior Member
Joined: 22 Apr 2006 Posts: 6250 Location: Mumbai, India
|
|
|
|
With your release of SyncSort, try this for a SyncTool Job -
Code: |
//TOOLIN DD *
SUBSET FROM(IN1) TO(OUT1) INPUT REMOVE HEADER TRAILER
/* |
|
|
Back to top |
|
|
|