View previous topic :: View next topic |
Author |
Message |
vinush2000 Beginner
Joined: 17 Jun 2005 Posts: 15 Topics: 5
|
Posted: Sun Jul 10, 2005 10:09 am Post subject: doubt in syncsort - please help. |
|
|
doubt in syncsort
------------------
i want to change n th byte of the header and trialer alone of a input flatfile using synsort step, with detail records as same.
how to do this?
please help.
vinu shankar |
|
Back to top |
|
|
kolusu Site Admin
Joined: 26 Nov 2002 Posts: 12372 Topics: 75 Location: San Jose
|
Posted: Mon Jul 11, 2005 5:44 am Post subject: |
|
|
vinush2000,
Post detailed information on what you're trying to accomplish. Do not make people guess what you mean. This will give you a much better chance of getting a good answer to your question.
1. What is the LRECL , RECFM of the input and output ?
2. What is the postion and format of the field to be changed?
3. How do you identify the header and trailer records?
4. Please post a sample input and desired output.
Kolusu _________________ Kolusu
www.linkedin.com/in/kolusu |
|
Back to top |
|
|
vinush2000 Beginner
Joined: 17 Jun 2005 Posts: 15 Topics: 5
|
Posted: Tue Jul 12, 2005 12:01 am Post subject: |
|
|
0001..............0003......
--------
---------
--------------------
9901..............0003.......
should be changed to
0001..............0004......
--------
---------
--------------------
9901..............0004....... |
|
Back to top |
|
|
kolusu Site Admin
Joined: 26 Nov 2002 Posts: 12372 Topics: 75 Location: San Jose
|
Posted: Tue Jul 12, 2005 5:51 am Post subject: |
|
|
vinush2000,
Did you read my prior post clearly ? I can't your read reuqirements over the internet.
Kolusu _________________ Kolusu
www.linkedin.com/in/kolusu |
|
Back to top |
|
|
vinush2000 Beginner
Joined: 17 Jun 2005 Posts: 15 Topics: 5
|
Posted: Wed Jul 20, 2005 8:18 am Post subject: Thanks for your response |
|
|
hi,
after some struggle, i got the answer. Its using OUTREC fields. But, is it possible to use conditional statements in OUTREC.
like, if n th byte is ' ' then change m th byte from '1' to '2'
(Do you see any improvement in my 'posting' skills Mr. kolusu?)
thanks all. |
|
Back to top |
|
|
Cogito-Ergo-Sum Advanced
Joined: 15 Dec 2002 Posts: 637 Topics: 43 Location: Bengaluru, INDIA
|
Posted: Wed Jul 20, 2005 11:41 am Post subject: |
|
|
Quote: | (Do you see any improvement in my 'posting' skills Mr. kolusu?) |
I am not speaking for Kolusu; but I definitely DO NOT see any improvement in your skills.
Kolusu has a reason for asking those questions; because that will help him to code a step that will do the job with hardly any modifications from your side.
Go back to the original post from Kolusu and please answer. _________________ ALL opinions are welcome.
Debugging tip:
When you have eliminated all which is impossible, then whatever remains, however improbable, must be the truth.
-- Sherlock Holmes. |
|
Back to top |
|
|
|
|