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

SYNCSORT how to skip 'N' number of lines


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

Active User


Joined: 09 Apr 2008
Posts: 133
Location: Phoenix, AZ

PostPosted: Mon Jun 09, 2008 11:38 am
Reply with quote

Can any one tell me how to skip 'N' no of lines from the lines while coping from file1 to file2 using Syncsort.
Back to top
View user's profile Send private message
PeD

Active User


Joined: 26 Nov 2005
Posts: 459
Location: Belgium

PostPosted: Mon Jun 09, 2008 11:43 am
Reply with quote

JCL does just nothing except telling a program to do what you want !!!!!

For the rest, SORT can help
Back to top
View user's profile Send private message
nelson.pandian

Active User


Joined: 09 Apr 2008
Posts: 133
Location: Phoenix, AZ

PostPosted: Mon Jun 09, 2008 11:46 am
Reply with quote

I want the Skip command which is used in SYSIN
Back to top
View user's profile Send private message
HappySrinu

Active User


Joined: 22 Jan 2008
Posts: 194
Location: India

PostPosted: Mon Jun 09, 2008 12:05 pm
Reply with quote

SKIP = N (number of lines to skip)

you can use in SYSIN card as control statements?

not sure if you expect any thing more
Back to top
View user's profile Send private message
enrico-sorichetti

Superior Member


Joined: 14 Mar 2007
Posts: 10873
Location: italy

PostPosted: Mon Jun 09, 2008 12:15 pm
Reply with quote

the details on how to skip record when copying depends on the tool used for the task,
consult Your program documentation

I' m afraid that jcl alone will not skip anything


did somebody add syncsort to the topic??
thats why I posted my comment

my post can be deleted then, or somebody can tell my dumbness of not noticing,
but on the witness chair I might, under oath, tell that syncsort was not there whe I replied icon_biggrin.gif
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: Mon Jun 09, 2008 7:19 pm
Reply with quote

Hello,

Quote:
Can any one tell me how to skip 'N' no of lines from the lines while coping from file1 to file2 using Syncsort.
Please post a few sample "input" records and the ouput you want when some of those records are skipped.

The Syncsort control info to do what you want will not be difficult.
Back to top
View user's profile Send private message
gprerna

New User


Joined: 21 Mar 2007
Posts: 38
Location: US

PostPosted: Tue Jun 10, 2008 6:48 am
Reply with quote

Code:

//SYSIN    DD *   
 SORT FIELDS=COPY,
 SKIPREC=X


This can be used in the sort card. SKIPREC will skip X number of records from i/p file.

Hope this is helps!!
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 Jun 10, 2008 8:06 am
Reply with quote

Hello gprerna,

Your code is likely what is needed.

We try to encourage people with a question to post sample input and output data to be sure we all have the same understanding of the request and the rules.
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 Substring number between 2 characters... DFSORT/ICETOOL 2
No new posts Generate random number from range of ... COBOL Programming 3
No new posts Increase the number of columns in the... IBM Tools 3
Search our Forums:

Back to Top