View previous topic :: View next topic
|
Author |
Message |
Vigneshwaran S Warnings : 1 New User
Joined: 10 Dec 2008 Posts: 60 Location: Chennai
|
|
|
|
Hi all,
I'm working in stream weaver!!!! I have some doubts.can anyone clarify?? |
|
Back to top |
|
|
Escapa
Senior Member
Joined: 16 Feb 2007 Posts: 1399 Location: IL, USA
|
|
|
|
You should better post the doubt first.
Someone here might help you... |
|
Back to top |
|
|
Vigneshwaran S Warnings : 1 New User
Joined: 10 Dec 2008 Posts: 60 Location: Chennai
|
|
|
|
Hi,
My input file is like this
Code: |
".L.L.G.D.û$1,406.01.L...G.Ö.û-.G.9.û$60.00.L...G...û-.G...û$0.00.L.Ñ.G.8.û+.G...û$0.00.L.º.G.8.û+.G...û$0.00.L...G.D.û$1,360.98.L.É.G...û$0.00.L.§.G.v." |
Note : The above input is a single line.
My requirement is to extract the values coming after '$' symbol. The position '$' is not fixed and hence it varies with each and every line. I have tried using functions like FINDNUM,FINDWORD but it is NOT working.
Can anyone help me in this issue. |
|
Back to top |
|
|
enrico-sorichetti
Superior Member
Joined: 14 Mar 2007 Posts: 10872 Location: italy
|
|
Back to top |
|
|
Vigneshwaran S Warnings : 1 New User
Joined: 10 Dec 2008 Posts: 60 Location: Chennai
|
|
|
|
Hi,
Thanks!!
There is NO trailing delimiter for the $ <char>.
how the file was produced is really irrelevant!
I am not able to understand this question!!!
I have one more question, I'm looking for a solution in Stream Weaver but there is a link that directs me to Parse Function in JCL??I'm confused.
Kindly explain. |
|
Back to top |
|
|
Escapa
Senior Member
Joined: 16 Feb 2007 Posts: 1399 Location: IL, USA
|
|
Back to top |
|
|
Vigneshwaran S Warnings : 1 New User
Joined: 10 Dec 2008 Posts: 60 Location: Chennai
|
|
|
|
Hi all,
Thanks for your help!!!
DFSORT is different from STREAMWEAVER. Stream Weaver is used to content enhancement,Postal Automation etc.,
I am trying to extract the values from AFP files for our project. |
|
Back to top |
|
|
enrico-sorichetti
Superior Member
Joined: 14 Mar 2007 Posts: 10872 Location: italy
|
|
|
|
please review Your understanding of things...
and explain better Your environment
looking at the data the <things> after the $ have different lengths ..
in order to extract them You have to satisfy one of these two conditions/requirements
1) fixed length tokens...
... locate the $ and extract n chars after it
2) variable length tokens
... locate the $ and extract all the chars until a terminating char is found ( trailer char )
if You cannot do that, then You will not be able to extract anything! |
|
Back to top |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19244 Location: Inside the Matrix
|
|
|
|
Hello,
If the posted "slingle line" of data is "input", what do you want as the "output" from when that input is processed? |
|
Back to top |
|
|
|