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

Process between first and last records - SYNCSORT


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

New User


Joined: 25 Jan 2008
Posts: 6
Location: Hyderabad

PostPosted: Tue Jul 20, 2010 6:01 pm
Reply with quote

Please let me know how to remove first and last record in sequential file using syncsort.

chaithu
Back to top
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8797
Location: Welsh Wales

PostPosted: Tue Jul 20, 2010 6:07 pm
Reply with quote

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

New User


Joined: 25 Jan 2008
Posts: 6
Location: Hyderabad

PostPosted: Tue Jul 20, 2010 6:20 pm
Reply with quote

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

Active User


Joined: 25 Apr 2007
Posts: 206
Location: Bangalore

PostPosted: Tue Jul 20, 2010 6:59 pm
Reply with quote

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

New User


Joined: 25 Jan 2008
Posts: 6
Location: Hyderabad

PostPosted: Tue Jul 20, 2010 7:04 pm
Reply with quote

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

Moderator Emeritus


Joined: 23 Nov 2006
Posts: 19244
Location: Inside the Matrix

PostPosted: Tue Jul 20, 2010 11:37 pm
Reply with quote

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

Superior Member


Joined: 22 Apr 2006
Posts: 6250
Location: Mumbai, India

PostPosted: Wed Jul 21, 2010 7:57 pm
Reply with quote

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
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 Compare only first records of the fil... SYNCSORT 7
No new posts Pulling a fixed number of records fro... DB2 2
No new posts Join multiple records using splice DFSORT/ICETOOL 5
No new posts EZT program to build a flat file with... All Other Mainframe Topics 9
No new posts JCL sortcard to print only the records DFSORT/ICETOOL 11
Search our Forums:

Back to Top