Mapping of the 2 text files with conditions
HelloJust trying to get my head around what would be the best solution that could be implemented in ODI with the next task I.
I have 2 text files, that the first file is in the format
AccCode | ChildCodeStart | ChildCodeFinish
1000-1099 B1000
1100-1199 B1001
The second text file
ChildCode | Alias
1000 depenses1
1001 depenses2
1100 available1
1101 disponibles2
The logic is now that I want to AccCode the first map file and match all the codes in the file two which are between ChildCodeStart and ChildCodeFinish
So my output
AccCode | ChildCode | Alias
B1000 1000 depenses1
B1000 1001 depenses2
B1001 1100 available1
B1001 1101 disponibles2
I don't know what would be the best route for this in ODI, I should load the files in the tables first or can make directly via an interface?
Thanks for any help
John
Hello
Yes, it is necessary to use a package... Sorry I forgot to mention. The package defines the 'stream of action '.
Good to hear it works...
Cezar Santos
Tags: Business Intelligence
Similar Questions
-
Multi load: error downloading the text file with more than 5 times
Hi all
I am getting below error while trying to load a text file with more than five periods of data through Multi charge.
" File can not be treated because the number of specified periods exceeds the available periods!" ".
FLTFILE_TO_PLANNING3
BUDGET
30/04/2013
6
Q.
A, C, UD1 UD2 UD3, UD4, UD5, UD6, UD7, UD8, V, V, V, V, V, V
AC_11102, CC_104204, Local, year 0, target, Final Budget, SA_000000, P_000001, HSP_InputValue, entry, 60, 70, 80, 90, 100, 110
AC_11102, CC_104207, Local, year 0, target, Final Budget, SA_000000, P_000000, HSP_InputValue, entry, 60, 70, 80, 90, 100, 110
AC_12542, CC_102101, Local, year 0, target, Final Budget, SA_000000, P_000000, HSP_InputValue, entry, 60, 70, 80, 90, 100, 110
AC_11102, CC_113242, Local, year 0, target, Final Budget, SA_000000, P_002478, HSP_InputValue, entry, 60, 70, 80, 90, 100, 110
AC_11102, CC_113243, Local, year 0, target, Final Budget, SA_000000, P_000000, HSP_InputValue, entry, 60, 70, 80, 90, 100, 110
AC_17802, CC_113244, Local, year 0, target, Final Budget, SA_000000, P_000856, HSP_InputValue, entry, 60, 70, 80, 90, 100, 110
AC_11102, CC_113511, Local, year 0, target, Final Budget, SA_000000, P_000000, HSP_InputValue, entry, 60, 70, 80, 90, 100, 110
AC_11102, CC_124111, Local, year 0, target, Final Budget, SA_000000, P_000521, HSP_InputValue, entry, 60, 70, 80, 90, 100, 110This file works fine with 5 periods.
Please notify.
APR
Hello
Yes, table period contol FDM was not properly defined. Now it works fine. Thank you very much.
APR
-
How to open a text file with Notepad to labview vi?
Hello
How can I run a program of a vi?
I want to open a text file with Windows7-block-notes after a file-path-control selelecting and pressing a button.
Thx for the help
Another option is the URL opened in VI of default browser located in the HUD assistance. If you use the path to the string function, you can feed the result as a URL, and the Windows shell knows the default program-oriented, which is Notepad.
Edit-
-
Hello
for my test application, I want to store test data in a text file with header. It should be like this:
name, series, count, current, min. Max run
Mister Smith
1234567890
111
10
1000
data:
1 345 34
2 355 23
3 360 34
...
The first row are only on the lines of header information. ' data: ' is the beginning of the data marker. The data consists of a number, the average value of the current regulation time in s.
Now I write an array of strings in the file text, but if the length of the header of Exchange I overwrite the data. For example, the name is Mister John Smith.
In my program, I can create a new file with header and I cannot change the header later. In the routine of the measure, I put the data in the file.
How can I solve this?
Thank you
Schwede
Hallo Schwede,
Here is an example:
Carefule and do a few checks, at this time, it will reduce 'your comments' when it exceeds 512 bytes...
-
Unload tables to text file with delimiter;
I want to empty all table data in a text file with. as a delimiter without applying a | ; || between the fields. Is there a ' select * from myTable ' method;
And this applies to other tables.
Want to run a script every day to ftp to other sources or keep them as backup.
Thanks for your help.You must call the sqlplus from a shell script. Think you're in a windows environment. So you can have something like this
create a run.bat file or command called run.cmd batch file and place the following code in there and save it
This command file will create a new file called run.sql in the c:\ drive which will be managed by sqlplus.
DateTime variable will create value "mmddyyyyhh24miss" (depending on your settings for date format) and be preceded by ".txt".set mydatetime=%date:~0,2%%date:~3,2%%date:~6,4%%time:~0,2%%time:~3,2%%time:~6,2% echo set linesize 124 > c:\run.sql echo set colsep ';' >> c:\run.sql echo set pages 0 >> c:\run.sql echo set head off >> c:\run.sql echo set verify off >> c:\run.sql echo set echo off >> c:\run.sql echo set trimspool on >> c:\run.sql echo set feedback off >> c:\run.sql echo spool c:\%mydatetime%.txt >> c:\run.sql echo select * from tab ; >> c:\run.sql echo spool off >> c:\run.sql echo exit >> c:\run.sql sqlplus -s user/passw0rd@connect @c:\run.sql
Note: You can add all the environment variables with a single instruction set in sqlplus Parry set linesize 124, etc.
But I have separated them for readabilityJust run from the command prompt
c: > run.cmdSee your updated file pending with current datetime.txt and go to the c:\ drive
-
Export InDesign text in a text file with paragraph styles
Hello
is it possible to export text in InDesign in a text file with included paragraph styles?
I want not only to include the formatting of the text that I must have still all paragraph styles applied to the text after the export.
Thank you
With the text tool in the ready to type text block. Choose file > export > RTF (Rich Text Format)
For all text to export text all images must be strung. If they don't you will have to do them individually.
If you just want a select few paragraphs then highlight and choose then export > RTF
Which can be opened in Word with all styles of tact.
It is unclear with your workflow is here, can you elaborate on what you are trying to do?
-
Hello.
I lost my new-> the Notepad text file option when right clicking. How can I get it back? See my http://img863.imageshack.us/img863/6138/screenshotxp.gif screen shot as an example for this missing in action. :(
Thank you in advance. :)
Hello
· Will there be any changes made on the computer before the show?
You can run the fix it from the link below and check if this can help: diagnose and automatically repair Windows files and folders issues: http://support.microsoft.com/mats/windows_file_and_folder_diag/
-
A message for the downloaded text files
I'm using the download / download the example of Mr. Kubicek who works very well. If the file is a jpg or xls or something it pulls a popup download but request if it
is a text .txt file, it downloads it, but gives no message, some users keep clicking on download and 30 copies of the file on the hard drive to get there.
If I could popup just a message to the downloaded text file then it would solve the problem.
Thank you
DougThis really looks like a browser configuration issue... the browser that you use can be configured to accept files of that MIME type (text/text?) without presenting an open/save dialog box.
What browser are you running that illustrates this behavior?
I would also test other browsers (IE, Firefox, Safari, etc.) and/or the same browser on machines replacing, to see if you can find a pattern of behavior. (In other words, is this just happening on your machine, or just IE browsers, or...).
-
Is there a way to open the text files with arbitrary extensions?
As part of the mobile platform iOS, is possible to open arbitrary text files that have an arbitrary extension? For example, in the course of my work day, I meet regularly with plain text files that have an .out extension. I'd love to be able to open these simply with iOS notes without renaming them in .txt. I meet many of them and only need to do this for a few minutes, so take the time to rename them significantly adds both.
On the desktop a BONE can generally "open with", then choose the application. I'm looking for the equivalent in iOS. Please note that to access the files on iOS is not a problem with icloud drive, dropbox, etc.. they just can not be opened easily. Simple text editor, word processor not full blown.
You will need a software that can handle the file.
Usually the file management applications can manage any type of file. I like the 5 Documents to Readdle, it can open almost anything.
https://iTunes.Apple.com/us/app/documents-5-file-system-PDF/id364901807?Mt=8
The equivalent of 'Open with' in the iOS is "open in", 'Share xxx' or even 'Copy To '.
How to get to it, depends on where the file is located.
ICloud drive for example, you can do open the file in a specific application by holding your finger on the icon of the file and by selecting more «...» "in the menu that appears, and then selecting"Share point... ". "and finally select an application from the list.
-
Reading of the text files with mixed data types.
I was able to read a text file ASCII with different types of numbers (whole, real) and the chains are associated. However, I can't read a timestamp that is in the calendar and the clock for carpet (dd/mm/yy HH). In view of the line
34 03/26/12/11 01:23:45 56 78 90
I want to read the time directly, but so far all I can do is read the date and time as a string. If the reading string is the best I can do, how to convert a value of internal time?
No need to separate the date/time string in two different things. Do it in one fell swoop.
-
How to write graph of waveform data to text file with the option to the user to do
So, I'm new to labview and will have bad to write a program in particular. I have a waveform graph that runs for 120 seconds, generating a sine curve. I am, however, having a time difficult get the program to write the x and are coordinated in a text file. I've attached what I have so far.
The first task I was assigned was to write a program that creates a curve of snusoidal on the front panel by adding a data point every half second for 120 seconds. The plot should starts only if the user presses a button to start.
The next part is to give the user an option to write the data generated in a file of worksheet called 'sine.txt '. The file name and location should be hard-coded. The file must contain the x and there contact information of each data point in columns separated by tabs, also known as the delimited.
I spent several hours refining the attached program, and I can't seem to make it work right. Any suggestions would be helpful at this stage.
Sincerely,
A student of chemistry frustrated whose research mentor is out of town
First, you create files Excel. You create text files. And it seems that your writing on a file already created X (time) vs Y (curve of data) that is delimited by tabs.
All you do is simply too complicated or a Rube Goldberg.
All you need is the joint.
-
At the beginning of the edit Text file
Hello world
I own a MacBook Pro in early 2011, the processor 2.3 Ghz Intel Core i5, 4 GB 1333 MHz DDR3 and Intel HD Graphics 3000 384. My hard drive is a Samsung SSD Pro 2012 series and I used it without a problem until a month ago or more. My Mac running OS X El Capitan v. 10.11.1. Due to frequent crashes with all software, I decided to restore the entire operating system with a previous backup. I've done this before almost 5 times in those years there. After that, well except for a message displayed by textedit
It is displayed whenever I turn on my Mac. How can I permanently remove this annoying message?
In the past, I had a similar problem that I solved thanks to the previous questions in this community, but now there is none.
I ' v tried to run the AHT Test by pressing the "D" command before the gray screen at the beginning, but nothing happened.
Any other ideas?
More than likely this text file is in your startup items. Look in the preferences system-> users and groups-> login items.
-
AppleScript - extraire extract values from a table, create a text file with these values
Hello world
Lets say I have a table that looks a bit like this
And this table I would create 2 text files (or even more, depending on how many switchnames are there) who look a bit like these
Is it still possible?
I suppose to create a Service (which can be called in numbers) with Automator which includes an Applescript script - but - no idea since the script is not one of my strong suits.
There is not need to be perfect, because tables are not necessarily the model presented above - so to tweek the script to the application will be necessary. The text files can be created/saved in the same folder as the file numbers is in.
Y at - it script-genius out there?
See you soon
Florian
Select the column of fist of the data, and then run this script by copying the Forum and paste it into the script editor. The files will appear on the desktop
say application "Numbers".
say front document to tell the worksheet active
say ( class is worn) fromfirst table whose selection range
selectionRange defined in column 1 of the selection
set cnt to 0
the value destRange for range
the value currentList to {}
-the list of switches
Repeat with acellule in selectionRange cells
-say acellule to set the value on the NTC
pass the value to the value of cell
if and ((cnt > 0) (switch is not missing value) and (currentList is not contain switch)) then
switch and the value in the currentList currentList
end if
NTC put to the cnt + 1
end Repeat
-Display dialog box "to the list of items is:" & currentList & "a list" & (currentList County) ".
Repeat with aswitch in currentList
" game textOut to '# Script generated with Applescript for switch' & aswitch &"
# on "& (today's date) &"
!
conf t
"
set cnt to 0
Repeat with acellule in selectionRange cells
-say acellule to set the value on the NTC
pass the value to the value of cell
-Display dialog "aswitch is []" & aswitch & "] and switch is []" & switch & "]".
if (aswitch contains the switch) then
the value cellCol to address a column of first cell of acellule
address of line of first cell value cellRow in of acellule
value to the aport (value of the cell of the column (cellCol + 1) cellRow) integer
the value vlan for the (value of the cell cellRow of column (cellCol + 2)) integer
the value desc to the (value of the cell cellRow of column (cellCol + 3))
" put to textOut textOut &.
!
"" IG 1/0 interface / "& aport &.
switchport mode access
switchport access vlan "" & vlan & ""
Description LINK TO "" & desc & ""
"
on the other
-Display dialog box "did not: []" & aswitch & "] and []" & switch & "]".
end if
NTC put to the cnt + 1
end Repeat
Set myFile to open for access (path to the Office as text) & aswitch & '_output.txt' the with write permission
textOut write to myFile
MyFile close access
end Repeat
end say
end say
end say
-
Continous writing in the external text file
I'm trying to build a VI in labVIEW that will supply a decimal value based on a binary file to enter a box structure. The structure of the case will display a string value according to the decimal places of entry. The problem that I wrote the string value to a text file that will continue to write while the Vi is constantly running.
Here are a few suggestions (you'll learn a lot more if you try to do this yourself, instead of my giving you a 'solution').
- You have 8 Boolean commands. Consider making a table (size 8) Boolean controls (among other things, it does help group them for you).
- If you look at the range of Booleans, you will see a function of "array of numbers. Guess what that so "feed you" an array of Boolean 8... You can eliminate a lot of code by doing this.
- Your numbers are all integers, so it is not sensible to save as a double.
- You have a configured here While loop. What you think about quick check how it works? Do you care? Do you want to it is running "as fast as possible? Do you want it to run at a fixed speed (for example, a loop per second)? Do you want it runs 'when something happens?
- Good thing you have done, is recognize that the task of recording has three parts - Open (performed only once), Write (done as often as necessary) and closed (performed only once). You also correctly positioned the relevant functions before, inside and after the while loop. I'm not 100% certain it's important in this particular case, but usually when we done that and has a While loop, running on the same "variable" on several occasions, the wire is put in a shift instead of a pair of tunnels register. Even if it is not necessary here, it would be a good change to make, because it will be necessary in other cases.
I did not actually run your code, but do not see something terribly wrong with it. Try to make the changes I suggested (which will allow you to significantly reduce the size of your VI). Special attention to the question of the 'speed '. If you republish your "improved" VI (and thanks for posting it), you could describe a little better "the problem I have" - what do I do, or what he does not?
Bob Schor
-
Original title: STUCK IN. LNK ??????????????????????????????????????????????????????????????
all my icons turned into extensions of file and state that "windows is unable to open these files. I can't search the Web for a fix, because it downloads as a .lnk I can't open as well?
Hi MarcSatz,-Did you change on your computer before this problem?This problem occurs when one or more of the following conditions are met:- The registry values that are associated with the file name extension are corrupted or missing values.
- The computer is infected with a virus.
Here is an article that will guide you in the process of fixing the issue:
Important: This section, method, or task contains steps that tell you how to modify the registry. However, serious problems can occur if you modify the registry incorrectly. Therefore, make sure that you proceed with caution. For added protection, back up the registry before you edit it. Then you can restore the registry if a problem occurs. For more information about how to back up and restore the registry, click on the number below to view the article in the Microsoft Knowledge Base:
Cannot open files with extensions such as.exe, .com, and.lnk on a Windows XP-based computer
Maybe you are looking for
-
Address bar works do not (Linux)
Since the last update the address bar does not work (by pressing Enter or clicking the arrow).Safe mode, disabling hardware acceleration either, did not help.
-
I took broadband of the cartridge color by mistake, but I can't reuse the tape. What is the best way to protect?
-
I created several playlists in Windows Media Player & in charge to my Sony Walkman NWZ-E365. «I deleted the playlists on my Walkman, I tried to manually synchronize these playlists back to my Sony, but it not sync them again & I don't get the "i" inf
-
Replace drive HARD laptop computer HP ENVY 15 t-j000 Quad Edition SSD
I would buy a HP ENVY 15 t-j000 Quad Edition Notebook PC and HP v300a 120 GB SATA Solid State Drive with Upgrade Kit. Now, the SSD has a thickness of 7mm. My question is if I can replace the HDD with that SSD? The thickness is the HARD drive Bay in t
-
kb2726233 update is blocking my vpn access
kb2736233 update is blocking my vpn access, the question of the activex control, Microsoft is there anything I can do other than do not take into account this update, or do not allow this update. Is a daily problem, have to remove every day.