Page 1 of 1

multiple output files base on the colon seperator.

PostPosted: Fri Sep 18, 2015 6:32 pm
by Surabhi
Hello,

i have a input file, there are three fields in one record which are seperated with semicolon---

prodmm;testmm;inprocessmm
prodaaaaaa;testaa;inprocessaawdee
prodzz123;testzzth7666;inprocesszz
prodkk;testkk;inprocesskk1111
prodpp55555;testpp678;inprocesspp
prodgg999999;testgg;inprocessgg67

i need the output in 3 files as--
file 1--all prod
file 2--all test
file 3--all inprocess

i tried it with prase parameters but im able to make only one file.
can someone please help me with this?

Re: multiple output files base on the colon seperator.

PostPosted: Fri Sep 18, 2015 6:35 pm
by BillyBoyo
You need the PARSE, BUILD a record with the PARSEd fields (so they are in fixed positions). You do that on INREC.

Then you need three OUTFILs. In each you simply do a BUILD with the data that is required for that output.

Re: multiple output files base on the colon seperator.

PostPosted: Wed Sep 23, 2015 9:18 pm
by Surabhi
Thanks alot :)