|
View previous topic :: View next topic
|
| Author |
Message |
morpheus007
New User

Joined: 27 Dec 2005 Posts: 58
|
|
|
|
Kindly have a look at this SYSIN for SYNCSORT:
OPTION COPY
OUTREC FIELDS=(5,133),CONVERT
OMIT COND=((5,25,CH,EQ,C' '),OR,
(6,12,CH,EQ,C'------------'),OR,
(5,1,CH,EQ,C'1'),OR,
(5,1,CH,EQ,C'0'),OR,
(10,4,CH,EQ,C'NAME'),OR,
(6,4,CH,EQ,C'PAT.'))
The SORTIN file of this is 138 in lrecl and the SORTOUT is 134.
The input data is highly unstructured and hence I am not able to guess what this sortcard is doing.
If you could kindly give the logic as to what this sortcard will do it would be a great help. |
|
| Back to top |
|
 |
expat
Global Moderator

Joined: 14 Mar 2007 Posts: 8798 Location: Welsh Wales
|
|
|
|
What do you think it is doing ?
What do you think OMIT COND= does ?
Have you taken a look in the fine manual to get some clues ? |
|
| Back to top |
|
 |
morpheus007
New User

Joined: 27 Dec 2005 Posts: 58
|
|
|
|
Hi Expat,
Kindly paste the link for a 'FINE MANUAL' on SYNCSORT only(Not DFSORT) and I will appologise for my ignorance and discover the truth for myself.
You are a senior member.I respect that and that is the reason I am avoiding an argument here.Kindly avoid replying in a manner(with questions???) that might spark a return argument from someone less patient than me.It will not help the forum.
I am here assuming there are people more knowledgable and with a little PATIENCE too in the forum.And by the way your questions did not help me too much. |
|
| Back to top |
|
 |
guptae
Moderator

Joined: 14 Oct 2005 Posts: 1209 Location: Bangalore,India
|
|
|
|
Hi there,
Please find the description of your sort card
Use for copy
| Code: |
| OUTREC FIELDS=(5,133) |
mean to build the output record by taking 133 bytes of input record starting from 5th BYte
Used for VB to FB conversion
| Code: |
OMIT COND=((5,25,CH,EQ,C' '),OR,
(6,12,CH,EQ,C'------------'),OR,
(5,1,CH,EQ,C'1'),OR,
(5,1,CH,EQ,C'0'),OR,
(10,4,CH,EQ,C'NAME'),OR,
(6,4,CH,EQ,C'PAT.')) |
:Used to exclude record from output if 5th byte is equal to spaces or from 6th byte to 18th byte is equal to '-' or if 5th byte is equal to 1 or 0 or if 10 to 13th byte conatin NAME OR 6th to 10th byte contain
'PAT.'.
Hope it will helpful |
|
| Back to top |
|
 |
expat
Global Moderator

Joined: 14 Mar 2007 Posts: 8798 Location: Welsh Wales
|
|
|
|
| morpheus007 wrote: |
Kindly paste the link for a 'FINE MANUAL' on SYNCSORT only(Not DFSORT) and I will appologise for my ignorance and discover the truth for myself.
You are a senior member.I respect that and that is the reason I am avoiding an argument here.Kindly avoid replying in a manner(with questions???) that might spark a return argument from someone less patient than me.It will not help the forum.
I am here assuming there are people more knowledgable and with a little PATIENCE too in the forum.And by the way your questions did not help me too much. |
I am not a user of SYNCSORT so can not post the link for you. However, I do know where the manuals are for the products that I use.
The manner in which I replied is an attempt to get you to find a way to answer your own questions. In my opinion this is the best way to learn, to know where the documentation is, and also to try things that you read about in said manual.
As for patience, I am very patient - just a little brusque at times  |
|
| Back to top |
|
 |
dick scherrer
Moderator Emeritus

Joined: 23 Nov 2006 Posts: 19243 Location: Inside the Matrix
|
|
|
|
Hello,
The Syncsort documentation is available (free) from Syncsort, Inc for licensed users. It is copyright material and may not be linked to here in the forum.
If you run a small test using 10 or 20 input records, you can look at your input and the output and "back into" what the sort control cards are telling the sort to do. Hint: make sure that at least one of your test records has NAME beginning in position 10 for a length of 4. . .
If you look at your files, you may see that your input is variable length and the output is fixed.
When posting this type of question, it is a good idea to post the jcl as well adn the control statements. When posting jcl or control statements, it is more readable if you post using the "Code" tab at the top of the reply panel. You can also click "Preview" to see what you post will look like once submitted.
We're here if you have questions. |
|
| Back to top |
|
 |
|
|
 |
All times are GMT + 6 Hours |
|