Format time in csv file
Hi everyone.
I have a csv file with first Column is time stamp. but i can't read in labview because Labview don't support.
The information as the attachment. Please help me read value in the first Column to time as red area on Fx.
Thanks and Best Regards
Try scanning your string like this. There's a bug where the Scan From String doesn't like to pick up the fractional seconds in a specificly formatted timestamp string. So I had to scan it separately and add.
There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
Attachments:
Get Timestamp.png 17 KB
Similar Messages
-
Is it possible to run a script each time a .CSV file is updated?
I am having trouble with a script I am trying to write, which is made up of two parts:
A .CSV file generated by PHP/MySQL whenever an RSS feed is updated. The contents of the .CSV are overwritten each time the PHP runs.
A DataMerge script, written in JavaScript.
What I would like to do is run the DataMerge script each time the .CSV file is updated. Is this possible, perhaps using an Event Listener within the PHP to trigger the DataMerge script? Or am I approaching this in the wrong way? I'm grateful for any thoughts you might have. Thanks, F.H.I would use Rorohiko's APID ToolKit: http://www.rorohiko.com/wordpress/indesign-downloads/active-page-item-developer/
It has fileChanged event that is sent after the observed external file has changed.
sorry guys for "labouring the point", but I'm working on very advanced project - and I need to know what my tool can or can't do
and in this case - using APID will break point 2.3 of EULA, right ? interaction with external datasource - without user action ?
robin
www.adobescripts.co.uk -
Wavefrom graph time from .csv file
Hello everyone. I had this problem something about three weeks ago:
http://forums.ni.com/t5/LabVIEW/Wavefrom-graph-time-from-csv/td-p/2256754
and solved it by changing the delimiter to a comma decimal delimitter with the format %,;%.2f
But this problem occurs again suddenly!.
I have attached the VI and the .csv file as a ZIP format
Best regards
Oesen
Attachments:
Trykmaaling_READ.vi 36 KB
ekstra.zip 1 KBI have deleted "row 0" and the graph is better now, but is still incorrect
Best regards
Oesen -
I am trying to run a Select query from Oracle DB job in Tidal. The results of this query can be output-ed in a CSV format. But, the requirement is for me to send out a CSV file, not just data in CSV format.
I've this same requirement with XML output format as well. Can we send out a "Completed Normally" mail with an XML output of the result of the Select query?
Thanks in advance.Hi,
I have a jpeg movie file 60 mins long and a text file tell me five time-lines for breaking the movie. For example, break the movie at 10:21, 16:05�
The final output should be five small jpeg movie files. Each file contains a 90 sec (30 sec before the break time and 60 sec after the break time).
Do you know any java library (jar) contain the library that can help me on programming this? Any existing source code? Any SDK for a movie editor can do that?
Please help.
Thanks
Kenny -
Wrong date format when import CSV files
When you import a CSV file that contains fields with German date formats, these fields are displayed incorrectly.
Example: Contents of the CSV file "01.01.14". After importing the corresponding cell in Numbers has the content "40178".
A reformat the cell to a date format is not possible.
How do I get the date in the new version of Numbers displayed correctly?It seems that there are more than a few problems related to import/export with non-US localizations.
I, personally, don't have a solution to your problem. I started to adjust my Language & Region settings to test your problem but it was several settings, I didn't get it right, and I didn't want to mess up my computer so I set everything back to US/English.
The only workarounds I can suggest are
Insert a new column into your table and in it put a formula that adds the number to the date 01.01.1904. Or,
Edit the CSV in TextEdit to Replace All "." with "/". This will work if "." is used for nothing else but these dates.
I recommend the second one if it will work for you. Hopefully Apple is addressing problems such as the one you are seeing. -
Loading 361000 records at a time from csv file
Hi,
One of my collegue loaded 361000 records from one file file , how is this possible as excel accepts 65536 records in one file
and even in the infopackage the following are selected what does this mean
Data Separator ;
Escape Sign "
Separator for Thousands .
Character Used for Decimal Point ,
Pls let me knowhi Maya,
it just possible, other than ms-excel, we have editor like Textpad that support more 65k rows (and windows Notepad), the file may be generated by program or edited outside in excel, or newer version of excel is used, ms-excel 2007 support more 1 million rows.
e.g we have csv file
customer;product;quantity;revenue
a;x;"1.250,25";200
b;y;"5.5";300
data separator ;
- char/delimeter used to separate field, e.g
escape sign, e.g
- "1.250,25";200 then quantity = 1.250,25
separator for thousands = .
- 1.250,25 means one thousand two hundred ...
char used for decimal point
- - 1.250<b>,</b>25
check
http://help.sap.com/saphelp_nw70/helpdata/en/80/1a6581e07211d2acb80000e829fbfe/frameset.htm
http://help.sap.com/saphelp_nw70/helpdata/en/c2/678e3bee3c9979e10000000a11402f/frameset.htm
hope this helps. -
set echo off
--set line 999
set space 0
set feedback on
set term off
set linesize 32000
set pagesize 49999
set colsep ,
select ci.CIRC_HUM_ID as Circuit_id,
cp.CIRC_PATH_HUM_ID as Associated_Path,
ci.TYPE as Category,
ci.bandwidth,
ci.VENDOR,
ci.STATUS,
si.CLLI as A_Site,
si.ADDRESS as A_Site_Address,
si.CITY as A_Site_City,
si.STATE_PROV as A_Site_State,
si1.CLLI as Z_Site,
si1.ADDRESS as Z_Site_Address,
si1.CITY as Z_Site_City,
si1.STATE_PROV as Z_Site_State
from telepac1.circ_path_inst cp
,telepac1.site_inst si
,telepac1.site_inst si1
,telepac1.circ_inst ci
where si.site_inst_id = cp.A_SIDE_SITE_ID
and si1.site_inst_id = cp.Z_SIDE_SITE_ID
and cp.CIRC_PATH_INST_ID = ci.CIRC_PATH_INST_ID (+);I am getting correct data in csv format but for Z_Site_Address some the vales of cell are coming to next row.
Z_Site_Address
SBC
345 N San Joaquin the data is coming is like this for few rows
but i want data like below
Z_Site_Address
SBC 345 N San Joaquin>
I am getting correct data in csv format but for Z_Site_Address some the vales of cell are coming to next row.
Z_Site_Address
SBC
345 N San JoaquinThat is because, as Jeneesh said, your data has embedded record delimiters. That data above may LOOK wrong but it is EXACTLY what your column contained.
That often happens when an application uses a MEMO field that lets a user type in multiple lines for a long text description or, in your case, for an address.
If you don't want embedded record delmiters in your DB data you should remove them when your app saves the data to begin with. If you convert those characters to spaces in the file and load the file again you will NOT have the same content you have to begin with. That means that app field will display one long line of characters to the user.
That is the price you pay for using delimited files; by default any embedded delimiters will cause the created file to be unloadable.
Be aware that if you are creating a COMMA delimited file then any embedded commas can cause a problem also unless the field is enclosed in double quotes. That is because when you read or try to load the file those 'extra' comma will be interpreted as a FIELD separator.
For example an address like '123 Maple St, Apt 111' will appear to be TWO values: '123 Maple St' and 'Apt 111'. -
File upload - issue with European .csv file format
All,
when uploading the .csv file for "Due List for Planned Receipts" in the File Transfer Upload center I receive an error. It appears that it is due to the european .csv file format that is delimited by semicolon rather than comma. The only way I could solve this issue is to change Regional and Language options to English. However, I don't think this is a great solution as I can't ask all our suppliers to change their settings. Has anyone come across this issue and another way of solving it?
Thank you!
Have a good day,
JohannaIgor thank you for your suggestion.
I found this SAP note:
+If you download a file, and the formatting of the CSV file is faulty, it is possible that your column separator does not match the standard settings of the SAP system. In the standard SAP system, the separator is ,.
To ensure that the formatting is correct, set your global default for column separation in your system, so that it matches that of the SAP system you are using.+
To do that Microsoft suggests to change the "List separator" in the Regional and Language Options Customize view. Though like you suggest that does not seem to do the trick. Am I missing something?
However, if I change the whole setting from say German to English (UK) the .csv files are comma delimited and can be easily uploaded. Was hoping there would be another way of solving this without need for custom development. -
Different formats of the flat file for the same target
In our deployment, we use plugin code to extract the csv files in the required format. The customers are on same version of datamart, but they are on different versions of source database - from 3.x to 4.5 depending on which version of application they are using. In 4.0, we introduced a new column email in the user table in the source database. Accordingly, plugin will add the field in the csv file. But not all the customers will get the upgraded version of plugin at the same time. So ETL code needs to decide which data flow to process depending on the format of the csv file to load data to the same target table. I made the email field in the target table nullable but it still expects the same format of the csv file with delimiter for null value.
Need help to achieve this. Can I read the structure of the flat file in DS or get the count of delimiters so that I can use a conditional to use different data flow based on the format of the flat files.
Can I make the email column in the flat file optional?
Thanks much in advance.You can add an email column that maps to null in a query transform for the source that does not contain this column.
Or else you can define two different file formats that map to the same file. One with the column and one without -
Netbeans - How to Upload a csv File
Hi all
A J2EE question from a java beginner:
I am using NetBeans and JBoss to develop a web application.
I need to create a JSP page for user to upload a csv file and then read from the csv file (the file is in certain fixed format).
The csv file will be read line by line to be updated into database.
In JSP Page I have this:
<td align="left" scope="col"><input type="file" name="meterList" id="meterList"></td>
<td><input type="submit" name="upload" id="upload" value="Upload File" ></td>What should I do in Servlet when I clicked on the "Upload" button?
How if I want to control the uploading size and type of the the file?
How to get the file to be processed in servlet?
Your help is much appreciated.
Thanks alot.this question has been asked a million times
try searching next time
and uploading a csv file has nothing to do with netbeans -
Issue in CSV file attachment.
Hi All,
I am using the FM : SO_DOCUMENT_SEND_API1 for sending mails in CSV format. This CSV file contains some chinese scripts. But when I open the attachment I can see some junk characters instead of that. My SAP version is 4.6c
I searched in all the forums and found these 2 solutions
1. OSS note 633265 .
2. Changed the characters set into simplified and traditional chinese.
Both didnt helped.
Suggestions are welcome.
Regards,
Dinesh.Hi Dinesh,
again: Never use FM : SO_DOCUMENT_SEND_API1 . Go for CL_BCS. Check programs
BCS_EXAMPLE_5
BCS_EXAMPLE_6
BCS_EXAMPLE_7
BCS_EXAMPLE_8
Regards,
Clemens -
Problem in csv file generation
Hi ,
I am trying to spool a query in csv format using "col sep ,"
but it is giving problem for the text values like example i have a sql_text column which gives the sql text. in the csv file which was generated the select statement columns are going to next column where the comma is invoked.
is there any way to format while generating csv file that entire sql_text should come in one column
Thanks
Rakeshset echo OFF pages 50000 lin 32767 feed off heading ON verify off newpage none trimspool on
define datef=&1
define datet=&2
set colsep ','
spool querries.csv
SELECT s.parsing_schema_name,
p.instance_number instance_number,
s.sql_id sql_id,
x.sql_text sql_text,
p.snap_id snap_id,
TO_CHAR (p.begin_interval_time,'mm/dd/yyyy hh24:mi') begin_interval_time,
TO_CHAR (p.end_interval_time,'mm/dd/yyyy hh24:mi') end_interval_time,
s.elapsed_time_delta / DECODE (s.executions_delta, 0, 1, s.executions_delta) / 1000000 elapsed_time_per_exec,
s.elapsed_time_delta / 1000000 elapsed_time,
s.executions_delta executions, s.buffer_gets_delta buffer_gets,
s.buffer_gets_delta / DECODE (s.executions_delta, 0, 1, s.executions_delta) buffer_gets_per_exec,
module module
FROM dba_hist_sqlstat s, dba_hist_snapshot p, dba_hist_sqltext x
WHERE p.snap_id = s.snap_id
AND p.dbid = s.dbid
AND p.instance_number = s.instance_number
AND p.begin_interval_time >
TO_TIMESTAMP ('&datef','yyyymmddhh24miss')
AND p.begin_interval_time <
TO_TIMESTAMP ('&datet','yyyymmddhh24miss')
AND s.dbid = x.dbid
AND s.sql_id = x.sql_id
ORDER BY instance_number, elapsed_time_per_exec DESC ;
SPOOL OFF;
exit; -
Best option to transmit CSV file as POST data to remote site
I'm quite new to the SAP scene and am tasked with getting some data out of our database and up to a third party web application.
Their API requests the data be formatted as a CSV file and uploaded as an HTTP POST attachment (file upload) to their site.
What's my best approach to this?
We have PI, but I just learned about CL_HTTP_CLIENT and am hoping I can do this move directly from the ABAP environment but am unsure of the sorts of technicalities involved with either of these options.
Can I setup a "service" in PI that simply posts data to a URL (as opposed to sending a SOAP request)?
What sort of setup do I need to do to get CL_HTTP_CLIENT to talk to the remote site? I've tested with HTTP_POST and get an SSL error even when posting to a non-ssl url (http).public
void Save(IPropertyBag
propertyBag, bool clearDirty,
bool saveAllProperties)
object val2 = (object)_event;
propertyBag.Write("Event",
ref val2);
object val3 = (object)_fullload;
propertyBag.Write("FullLoad",
ref val3);
object val4 = (object)_sharedsecret;
propertyBag.Write("SharedSecret",
ref val4);
object val5 = (object)_content;
propertyBag.Write("Content",
ref val5);
object val6 = (object)_clienttype;
propertyBag.Write("ClientType",
ref val6);
object val7 = (object)_clientinfo;
propertyBag.Write("ClientInfo",
ref val7);
object val8 = (object)_clientversion;
propertyBag.Write("ClientVersion",
ref val8);
#endregion
#region IComponent
public
IBaseMessage Execute(IPipelineContext
pc, IBaseMessage inmsg)
//Convert Stream to a string
Stream s =
null;
IBaseMessagePart bodyPart = inmsg.BodyPart;
string separator =
new
Guid().ToString();
inmsg.BodyPart.ContentType =
string.Format("multipart/form-data;
boundary={0}", separator);
//inmsg.BodyPart.Charset = string.Format("US-ASCII");
// NOTE inmsg.BodyPart.Data is implemented only as a setter in the http adapter API and a
//getter and setter for the file adapter. Use GetOriginalDataStream to get data instead.
if (bodyPart !=
null)
s = bodyPart.GetOriginalDataStream();
byte[] bytes =
new
byte[s.Length];
int n = s.Read(bytes, 0, (int)s.Length);
string msg =
new
ASCIIEncoding().GetString(bytes).TrimEnd(null);
//Get boundry value from first line of code
string boundry = msg.Substring(2, msg.IndexOf("\r\n")
- 2);
//Create new start to message with MIME requirements.
msg =
"MIME-Version: 1.0\r\nContent-Type: text/plain; boundary=\"" + boundry +
"\"\r\n" + msg;
//Convert back to stram and set to Data property
inmsg.BodyPart.Data =
new
MemoryStream(Encoding.UTF8.GetBytes(msg));
//reset the position of the stream to zero
inmsg.BodyPart.Data.Position = 0;
return inmsg;
#endregion -
Dulicacy of field values in the CSV file
Hi Experts
We are configuring a file to idoc scenario in which the file is a .csv txt file.
The format of the csv file is
NMI,BillNo,BillAmount,ContractAcc
There are instances where there is a duplicacy in the NMI & hence that needs to be filtered before sending it to PI.Any idea about how to filter this either at the source end or PI end.
Please throw some light in this.
Regards
SabyasachiHi Sabyasachi,
Manually you will need to open the file put it into excel remove duplicate entries , again move that back again into text file. This method is a very dumb way of doing things.
A smarter way would be to write a module. The link given below is not a tailor made solution to your query but sufficient to get you started.
https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/99593f86-0601-0010-059d-d2dd39dceaa0
Regards
joel -
Ssrs 2012 export to comma delimited (csv) file problem
In an ssrs 2012 report, I want to be able to export all the data to a csv (comma delimited) file that only contains the detailed row information. I do not want to export any rows that contain header data information.
Right now the export contains header row information and detail row information. The header row information exists for the PDF exports.
To have the header row not exist on CSV exports, I have tried the following options on the tablix with the header row information with no success:
1. = iif(Mid(Globals!RenderFormat.Name,1,5)<>"EXCEL",false,true),
2. = iif(Mid(Globals!RenderFormat.Name,1,3)="PDF",false,true),
3. The textboxes that contain the column headers, the dataelelementoutput=auto and
the text boxes that contain the actual data, I set the dataelelementoutput=output.
Basically I need the tablix that contains the header information not to appear when the export is for a csv file.
However when the export is for the detail lines for the csv export, I need that tablix to show up.
Thus can you tell me and/or show me code on how to solve this problem?Hi wendy,
Based on my research, the expression posted by Ione used to hide items only work well when render format is RPL or MHTML. Because only the two render format’s RenderFormat.IsInteractive is true.
In your scenario, you want to hide tablix header only when export the report to csv format. While CSV file uses the textbox name in detail section as the column name, not the table header when you view the table. So if we want to hide the header row of the
tablix, please refer to the steps below to enable the “NoHeader” setting in the RSReportserver.config file:
Please navigate to RSReportserver.config file: <drive:>\Program Files\Microsoft SQL Server\MSRS1111.MSSQLSERVER\Reporting Services\ReportServer \RSReportserver.config.
Backup the RSReportserver.config file before we modify it, open the RSReportserver.config file with Notepad format.
In the <Render> section, add the new code for the CSV extension like this:
< Extension Name="CSV" Type="Microsoft.ReportingServices.Rendering.DataRenderer.CsvReport,Microsoft.ReportingServices.DataRendering">
<Configuration>
<DeviceInfo>
<NoHeader>True</NoHeader>
</DeviceInfo>
</Configuration>
< /Extension>
Save the RSReportserver.config file.
For more information about CSV Device Information Settings, please see:
http://msdn.microsoft.com/en-us/library/ms155365(v=sql.110)
If you have any other questions, please feel free to ask.
Thanks,
Katherine xiong
If you have any feedback on our support, please click
here.
Katherine Xiong
TechNet Community Support
Maybe you are looking for
-
Disable Print from menu/toolbar from Designer 7
Hello, I have a form that contains a print button, which is only executed if all validation rules are executed successfully. However, I still have the Print function in the menu and the toolbar of Acrobat/Reader. In the forum I found an entry stating
-
How can I make my cd-roms work with osx 10.4.9?
We bought a new mac, but my kids cd-roms -- which we just bought in December -- don't work with it. They say they're Macintosh compatible, but I suspect they just don't work with this new system. Is there a driver or some other update I can download
-
I need to see if in Crystal I can create a report has two different label sizes per line. It would be landscape with a 1x3 label then it starts 1x1 labels to the right of it. It is east to do with the mailing label wizard with either version but I h
-
I am really new in Oracle and i dont know how to start the database (i only know that the Oracle is installed...) Please Help !
-
Transaction currency error in J1IIn
Hi, I am getting Error in transaction currency while executing T.code J1iin. I have seen all the sdn replies and have tried. Excise GL accounts determination are done and SAP patch notes are also applied. Could anybody add further more inputs to solv