Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

Need to Clarify some Doubts in Stream Weaver!!

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> All Other Mainframe Topics
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    Post subject: Need to Clarify some Doubts in Stream Weaver!!
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    Post subject:
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    Post subject:
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

Global Moderator


Joined: 14 Mar 2007
Posts: 10210
Location: italy

PostPosted: Mon Apr 12, 2010 1:05 pm    Post subject: Reply to: Need to Clarify some Doubts in Stream Weaver!!
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
http://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 ?
http://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    Post subject:
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    Post subject:
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
http://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    Post subject:
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

Global Moderator


Joined: 14 Mar 2007
Posts: 10210
Location: italy

PostPosted: Mon Apr 12, 2010 9:15 pm    Post subject: Reply to: Need to Clarify some Doubts in Stream Weaver!!
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

Site Director


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

PostPosted: Mon Apr 12, 2010 9:36 pm    Post subject:
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    IBMMAINFRAMES.com Support Forums -> All Other Mainframe Topics All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts in-stream data set (inline data set) ... Andi1982 JCL & VSAM 4 Thu Jul 07, 2016 2:59 pm
No new posts 3270 data stream programming prino CLIST & REXX 4 Wed Dec 10, 2014 3:50 pm
No new posts REXX Stream I/O Ricardo Viegas CLIST & REXX 1 Tue Aug 05, 2014 7:42 am
No new posts Restart JCL stream within IF Block drowelf JCL & VSAM 11 Tue Jan 29, 2013 11:47 pm
This topic is locked: you cannot edit posts or make replies. TO move into DBA stream Bhuvaneswari K DB2 1 Thu Nov 29, 2012 5:53 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us