Login
Register
Search
Home
Forums
Jobs
LawsonGuru
LawsonGuru Letter
LawsonGuru Blog
Worthwhile Reading
Infor Lawson News Feed
Store
Store FAQs
About
Forums
Integration / Customization
IPA/ProcessFlow
Data Iterator Parsing a TAB Delimited txt file
Home
Forums
Jobs
LawsonGuru
LawsonGuru Letter
LawsonGuru Blog
Worthwhile Reading
Infor Lawson News Feed
Store
Store FAQs
About
Who's On?
Membership:
Latest:
Raju
Past 24 Hours:
1
Prev. 24 Hours:
1
Overall:
5205
People Online:
Visitors:
302
Members:
0
Total:
302
Online Now:
New Topics
Lawson S3 HR/Payroll/Benefits
Post Tax Benefit Plan Table
11/14/2024 9:16 PM
Hi, totally new to Laswon. I have a repor
Lawson S3 Procurement
ED501 Error: Map 850 not supported by /law/c15vda/lawson/test10/edi/bin/laws_out_91
11/12/2024 3:47 PM
Tried runnning ED501 and getting the atathced erro
Lawson Smart Office
Error
11/6/2024 9:54 PM
When I try to enroll a retiree in 72.1 health plan
Infor CloudSuite
Syteline: New Data Maintenance Wizard (Error) Need help
11/1/2024 4:39 PM
Hi, I need help with an error on syteline while us
Infor ERP (Syteline)
Syteline: New Data Maintenance Wizard (Error) Need help
11/1/2024 4:24 PM
Hi, I need help with an error on syteline while us
Dealing with Lawson / Infor
Implementing Lawson v10 with Cerner Surginet, Case Cart Picking, and Quick Adds for the OR
10/29/2024 4:20 PM
Hi Everyone, I am wondering if there is any org
Lawson S3 HR/Payroll/Benefits
Canada Tax Calculation (Federal and Provincial) Issue
10/23/2024 5:00 AM
Initially, we had problem with CPP2 calculation is
Lawson S3 HR/Payroll/Benefits
CA Section 125 401k Plan
10/22/2024 10:13 PM
Does anyone have any recommendations on how to fac
S3 Systems Administration
Running AC120 deleted records from ACMASTER table
10/22/2024 3:40 PM
We recently ran the AC120 as normal and somehow it
Lawson S3 Procurement
RQ13 Approval Info
10/17/2024 2:12 PM
When a Requisition is approved on RQ13, what table
Top Forum Posters
Name
Points
Greg Moeller
4184
David Williams
3349
JonA
3291
Kat V
2984
Woozy
1973
Jimmy Chiu
1883
Kwane McNeal
1437
Ragu Raghavan
1369
Roger French
1315
mark.cook
1244
Forums
Filtered Topics
Unanswered
Unresolved
Announcements
Active Topics
Most Liked
Most Replies
Search Forums
Search
Advanced Search
Topics
Posts
Prev
Next
Forums
Integration / Customization
IPA/ProcessFlow
Data Iterator Parsing a TAB Delimited txt file
Please
login
to post a reply.
8 Replies
0
Subscribed to this topic
52 Subscribed to this forum
Sort:
Oldest First
Most Recent First
Author
Messages
gastonak
Basic Member
Posts: 21
5/6/2011 4:50 PM
I have a TAB delimited file I am trying to parse but it is ignoring the tabs. The outer Data Iterator reads each line and inside this loop, I have the Line Data Iterator "DLINE" with the setting "Parse By = Delimiter String". For the delimiter value, I am using the variable vTAB='\t'. The value of "DLine_outputData1" is the same as the entire line which indicates that it is ignoring the TABs. I opened the input file in note++ and I can see the tabs in each line. How should I setup Data Iterators in order to parse a file withTABs?
Thank you,
Gaston
RandyM
Basic Member
Posts: 9
5/6/2011 6:08 PM
Hey gastonak. Since you are using a variable, did you spcify it like this: . is the case correct?
RandyM
Basic Member
Posts: 9
5/6/2011 6:09 PM
Try it again. specify it like this:
gastonak
Basic Member
Posts: 21
5/6/2011 6:48 PM
I assigned the value '\t' to the variable vTAB and then I assigned to the Delimiter String under the Data Iterator Properties.When I execute it, the variable appears as an actual tab spaces and the iterator shows DLine_outputData1 same as DLine_outputData with parsing the file. Is parsing a TAB file different that parsing other delimiters?
Thank you.
RandyM
Basic Member
Posts: 9
5/6/2011 7:00 PM
I have done the same thing you are doing only with the data iterators; but I have only used commas. I just wanted to make sure that since you are using a variable, the Delimiter String property is specified properly. You need to use the vTAB with the proper case and syntax the syntax must look like this:
. You could also try putting '\t' directly in the Delimiter String property.
RandyM
Basic Member
Posts: 9
5/6/2011 7:02 PM
you need to include the greater than and less than signs and the exclamation point just like I showed
gastonak
Basic Member
Posts: 21
5/6/2011 7:16 PM
That is exactly what I am doing, I am using on my iterator and now I changed to '\t' but it makes no difference. Could you try parsing a TAB file to make sure the '\t' is not getting ignored. Thanks.
Sam Simpson
Veteran Member
Posts: 239
5/6/2011 7:52 PM
I know I have done this before in both file and variable. for comma delimiter you simply put a "," in the property box and you are done. For horizontal and vertical tabs you can not just create vTAB='\t' because \t as a special character (escape sequencee) that is only recognized by some special scripting language like javascript. I think what I did is create a new function in javascript (Pflow.js) to get the ASCII equivalent of TABs. So in my processflow I would create a variable string vTAB=HorTabFunctron() where HorTabFunction is returned by javascript whose value is the non-displayed character for horizontal tab. In one of my flow I also send either the file or variable into a javascirpt function whose only purpose is to parse the string delimited by either a comma or TAB.
gastonak
Basic Member
Posts: 21
5/6/2011 8:23 PM
Sam,
I think using java Scripting works just fine. I added an Assign node task prior to the second Data Iterator "DLINE". In this task, I have a java script that replaces all of the tabs with a comma, then I assign this value to the DLine Iterator using a comma as the delimiter. This works for me but I wonder if there is an easier way.
Thank you.
Please
login
to post a reply.