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

Need to Clarify some Doubts in Stream Weaver!!


IBM Mainframe Forums -> All Other Mainframe Topics
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
Vigneshwaran S
Warnings : 1

New User


Joined: 10 Dec 2008
Posts: 60
Location: Chennai

PostPosted: Mon Apr 12, 2010 12:34 pm
Reply with quote

Hi all,

I'm working in stream weaver!!!! I have some doubts.can anyone clarify?? icon_biggrin.gif
Back to top
View user's profile Send private message
Escapa

Senior Member


Joined: 16 Feb 2007
Posts: 1399
Location: IL, USA

PostPosted: Mon Apr 12, 2010 12:36 pm
Reply with quote

You should better post the doubt first.
Someone here might help you...
Back to top
View user's profile Send private message
Vigneshwaran S
Warnings : 1

New User


Joined: 10 Dec 2008
Posts: 60
Location: Chennai

PostPosted: Mon Apr 12, 2010 12:45 pm
Reply with quote

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
View user's profile Send private message
enrico-sorichetti

Superior Member


Joined: 14 Mar 2007
Posts: 10872
Location: italy

PostPosted: Mon Apr 12, 2010 1:05 pm
Reply with quote

ok the $ <char> as leading delimiter, what about the trailing delimiter

how the file was produced is really irrelevant!

search the jcl/dfsort forums for samples of the parse function
here anyway a pointer
publibz.boulder.ibm.com/cgi-bin/bookmgr_OS390/BOOKS/ICE1CA40/3.13?DT=20090527161936

but wouldn' t be better to find out if You can extract data using streamweaver itself ?
www.pbinsight.com/support/product-documentation/
Back to top
View user's profile Send private message
Vigneshwaran S
Warnings : 1

New User


Joined: 10 Dec 2008
Posts: 60
Location: Chennai

PostPosted: Mon Apr 12, 2010 2:14 pm
Reply with quote

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
View user's profile Send private message
Escapa

Senior Member


Joined: 16 Feb 2007
Posts: 1399
Location: IL, USA

PostPosted: Mon Apr 12, 2010 2:27 pm
Reply with quote

PARSE function is not in JCL(actually jcl can't do such function) but in DFSORT.

There is link to DFSORT manuals in manuals section of the site...
below is one of them
publibz.boulder.ibm.com/cgi-bin/bookmgr_OS390/handheld/Connected/BOOKS/ICE1CA40/CCONTENTS

Here is direct
Link to PARSE
Back to top
View user's profile Send private message
Vigneshwaran S
Warnings : 1

New User


Joined: 10 Dec 2008
Posts: 60
Location: Chennai

PostPosted: Mon Apr 12, 2010 2:36 pm
Reply with quote

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
View user's profile Send private message
enrico-sorichetti

Superior Member


Joined: 14 Mar 2007
Posts: 10872
Location: italy

PostPosted: Mon Apr 12, 2010 9:15 pm
Reply with quote

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
View user's profile Send private message
dick scherrer

Moderator Emeritus


Joined: 23 Nov 2006
Posts: 19244
Location: Inside the Matrix

PostPosted: Mon Apr 12, 2010 9:36 pm
Reply with quote

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
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 -> All Other Mainframe Topics

 


Similar Topics
Topic Forum Replies
No new posts JCL (SET) variables in input stream data JCL & VSAM 0
No new posts how to copy a sequential dataset by u... JCL & VSAM 3
No new posts 3270 Data stream error CICS 6
No new posts in-stream data set (inline data set) ... JCL & VSAM 4
No new posts 3270 data stream programming CLIST & REXX 4
Search our Forums:

Back to Top