View previous topic :: View next topic
|
Author |
Message |
nelson.pandian
Active User
Joined: 09 Apr 2008 Posts: 133 Location: Phoenix, AZ
|
|
|
|
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 |
|
|
PeD
Active User
Joined: 26 Nov 2005 Posts: 459 Location: Belgium
|
|
|
|
JCL does just nothing except telling a program to do what you want !!!!!
For the rest, SORT can help |
|
Back to top |
|
|
nelson.pandian
Active User
Joined: 09 Apr 2008 Posts: 133 Location: Phoenix, AZ
|
|
|
|
I want the Skip command which is used in SYSIN |
|
Back to top |
|
|
HappySrinu
Active User
Joined: 22 Jan 2008 Posts: 194 Location: India
|
|
|
|
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 |
|
|
enrico-sorichetti
Superior Member
Joined: 14 Mar 2007 Posts: 10873 Location: italy
|
|
|
|
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 |
|
Back to top |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19244 Location: Inside the Matrix
|
|
|
|
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 |
|
|
gprerna
New User
Joined: 21 Mar 2007 Posts: 38 Location: US
|
|
|
|
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 |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19244 Location: Inside the Matrix
|
|
|
|
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 |
|
|
|