Quarterly Return - Text file generation
Hi
While generating the text file in the Quarterly return for TDS, I see that there are lot of ^s and 0s in addition to the data items. Is it the standard set or there should be only figures and data ? (I mean to ask there should not be any ^s and 0s ?)
Regards
Hi
I am configuring accumulation option for EWT for some vendors and the same is being applied from this month onwards (August). As of now, already open items are existing for these vendors (April-July). Once I assign the new tax code and post the invoices for these vendors, the amount gets accumulated and the tax is calculated for the amount exceeding the exempted limit.
My requirement is how to bring the earlier items of these vendors pertaining to the current year i.e. April-July (before activating the tax code for these vendors) also to bring under the accumulation calculation for tax ?
Looking forward your valuable comments;
Regards
Similar Messages
-
Team,
We are generating E-text report based on 1.3 millons records and this file is ftped to another unix box via BIP
schedular . We know that the DataXML for this E-text report is generated in the
memory. What we want to know is about the final E-text file that is generated ,
Is it also generated in the memory and then ftped to unix box ? If so is there
way to generated this E-text file on the disk ?
Please can some one advice on this ?
ThanksHere's what I would do....
I would write a java concurrent program to generate the etext file calling the BIP APIs and then I would use the delivery APIs to ftp to the unix box. To my knowledge bursting doesn't support FTP, if I'm wrong let me know. An alternative would be to use samba and then you wouldn't have to ftp, you would just move it to another directory.
Here's an old etext example that I have does basically what you want to do...
Don't forget to give me the points dude!
Ike Wiggins
http://bipublisher.blogspot.com
import com.sun.java.util.collections.Hashtable;
import java.util.HashMap;
import java.util.Set;
import java.util.Iterator;
import com.valspar.cp.base.program.VCAConcurrentBase;
import java.io.*;
import oracle.apps.fnd.cp.request.CpContext;
import oracle.apps.fnd.util.*;
import com.valspar.cp.base.utility.VCADirectories;
import oracle.xml.parser.v2.DOMParser;
import org.w3c.dom.*;
import com.valspar.cp.base.utility.JDBCUtil;
import java.util.Properties;
import oracle.apps.xdo.common.log.Logger;
import oracle.apps.xdo.dataengine.DataProcessor;
import oracle.apps.xdo.oa.schema.server.TemplateHelper;
import oracle.jdbc.OracleCallableStatement;
public class Ebol extends VCAConcurrentBase
public String pConcOutFile = "";
public Ebol()
public static void main(String[] args)
Ebol ebol = new Ebol();
try
//Bold is the DBC file name the number to the right doesnt matter
CpContext context = new CpContext("Resources\\sand.valspar.com_nadv", 16148940);
ParameterList paramList = new ParameterList();
paramList.addParameter("P_INVENTORY_ORGANIZATION", "1218"); //"13439");
paramList.addParameter("P_DELIVERY_NUMBER", "1000024");
ebol.setPCpContext(context);
ebol.saveParameters(context, paramList);
ebol.runProgram(context);
catch (Exception e)
System.out.println("Error in main(): " + e);
ebol.getLogFile().writeToLogFileError(e.toString(), "Ebol", "main");
ebol.setCompletionToError("Ebol.main() " + e.getMessage());
public void valsparRunProgram()
Hashtable cpParameters = new Hashtable();
InputStream dataTemplate;
try
CpContext context = getPCpContext();
setOrgContext();
cpParameters = convertToHashtable(this.getParamList().getAllParameters());
getLogFile().setLevel(getLogFile().log.ERROR);
String applShortName = getPCpContext().getReqDetails().getGeneralInfo().getApplShortName();
String progName = getPCpContext().getReqDetails().getGeneralInfo().getProgName();
String outFileName = getPCpContext().getOutFile().getFileName();
getLogFile().logFileUserMessage("Generating the xml file and flat-file for EDI.");
getLogFile().writeToLogFileEvent("the outfile value " + context.getOutFile().getFileName(), "Ebol", "valsparRunProgram()");
/**@IWW - Had to use data processor class over datatemplate class.
* after the final output is generated it's in a new file
* [conc_short_name]_[REQUEST_ID]_1.pdf but oracle never writes
* the file out till the concurrent request finishes. So the
* workaround is to call the data processor, then apply a template
* to the xml */
getLogFile().logFileUserMessage("Before retrieving the data template");
dataTemplate = getDataTemplate(applShortName, progName);
getLogFile().logFileUserMessage("After retrieving the data template");
try
DataProcessor dataProcessor = new DataProcessor();
dataProcessor.setDataTemplate(dataTemplate);
dataProcessor.setParameters(cpParameters);
dataProcessor.setConnection(this.getConn());
dataProcessor.setOutput(outFileName);
dataProcessor.processData();
catch (Exception e)
getLogFile().writeToLogFileError(e.getMessage(), "Ebol", "valsparRunProgram()");
finally
dataTemplate.close();
//logFileUserMessage("Out file name "+ getPCpContext().getOutFile().getFileName());
getLogFile().logFileUserMessage("Completed generating the xml file and flat-file transformation.");
setConcOutFile(VCADirectories.getConcurrentFile(this.getConn(), getPCpContext().getReqDetails().getRequestId()));
getLogFile().logFileUserMessage("Validating the xml file before we send flat-file to EDI.");
if (validateXmlFile() == false)
setCompletionToError("Ebol.valsparRunProgram() " + " validateXmlFile() - Failed");
return;
getLogFile().writeToLogFileStatement("applying the template for the concurrent request", "eBol", "valsparRunProgram()");
//apply the template
if (applyTemplate(getPCpContext().getReqDetails().getRequestId(), TemplateHelper.OUTPUT_TYPE_ETEXT) == false)
setCompletionToError("eBol.valsparRunProgram() " + " applyTemplate() - Failed");
return;
getLogFile().logFileUserMessage("Starting file transfer process to EDI");
//burst or ftp the file
if (ftpFile() == false)
setCompletionToError("Ebol.main() " + " ftpFile() - Failed");
return;
getLogFile().logFileUserMessage("Program finished successfully!");
setCompletionToNormal("Program finished successfully!");
return;
catch (Exception e)
getLogFile().writeToLogFileError(e.toString(), "Ebol", "main");
setCompletionToError("Ebol.main() " + e.getMessage());
public void setConcOutFile(String pConcOutFile)
this.pConcOutFile = pConcOutFile;
public String getConcOutFile()
return pConcOutFile;
public boolean ftpFile()
String instance = "";
int requestID = 0;
boolean returnCode = true;
StringBuffer filePathFrom = new StringBuffer();
StringBuffer filePathTo = new StringBuffer();
try
/* Get environment and db info */
instance = getEnvironmentValue("ORACLE_SID");
requestID = getPCpContext().getReqDetails().getRequestId();
filePathFrom.append(getEnvironmentValue("APPLCSF"));
filePathFrom.append("/");
filePathFrom.append(getEnvironmentValue("APPLOUT"));
filePathFrom.append("/o");
filePathFrom.append(String.valueOf(requestID));
filePathFrom.append(".out_1.PDF");
getLogFile().logFileUserMessage("From Location to ftp file is: " + filePathFrom.toString());
filePathTo.append(getEnvironmentValue("EDI_OUTBOUND_APP"));
filePathTo.append("/");
filePathTo.append(getPCpContext().getReqDetails().getGeneralInfo().getProgName());
filePathTo.append("_");
filePathTo.append(String.valueOf(requestID));
filePathTo.append(".txt");
getLogFile().logFileUserMessage("To Location to ftp file is: " + filePathTo.toString());
String ftpServer = getEnvironmentValue("VALEC_SERVER");
String ftpUser = "valec";
returnCode = ftpFile(ftpServer, ftpUser, filePathFrom.toString(), filePathTo.toString());
return returnCode;
catch (Exception exception)
getLogFile().writeToLogFileError(exception.toString(), "Ebol", "ftpFile()");
return false;
public boolean validateXmlFile()
FileInputStream fileinputstream = null;
DOMParser parser = new DOMParser();
int numberOfRecords = 0;
try
fileinputstream = new FileInputStream(getConcOutFile());
parser.parse(fileinputstream);
Document doc = parser.getDocument();
NodeList nodes = doc.getElementsByTagName("CS_COUNT");
numberOfRecords = Integer.parseInt(nodes.item(0).getFirstChild().getNodeValue());
getLogFile().writeToLogFileEvent("Number of header records = " + numberOfRecords, "Ebol", "validateXmlFile()");
catch (FileNotFoundException f)
getLogFile().logFileUserMessage("Unable to validate the file, the concurrent request to generate it probably failed.");
catch (Exception exception)
getLogFile().writeToLogFileError(exception.toString(), "Ebol", "validateXmlFile()");
finally
try
fileinputstream.close();
parser.reset();
catch (Exception exception)
getLogFile().writeToLogFileError("Error closing file input/output stream " + exception.toString(), "Ebol", "validateXmlFile()");
return false;
return numberOfRecords >= 1? true: false;
public Hashtable convertToHashtable(HashMap hm)
Hashtable htb = new Hashtable();
Set s = hm.keySet();
Iterator i = s.iterator();
while (i.hasNext())
String key = (String) i.next();
String value = (String) hm.get(key);
htb.put(key, value);
return htb;
/**@applyTemplate - applies a template to an xml file for a concurrent request
* that is submitted in a java concurrent program. This should
* be used if a data template was not created.
* @Author - Ike Wiggins
* @Creation - 07-23-2007
* @@PARAMETERS:
* @pConcurrentRequestId - concurrent request that generated an xml file
@pTemplateOutputType - Valid values are:
TemplateHelper.OUTPUT_TYPE_PDF_45;
TemplateHelper.OUTPUT_TYPE_PDF;
TemplateHelper.OUTPUT_TYPE_RTF;
TemplateHelper.OUTPUT_TYPE_EXCEL;
TemplateHelper.OUTPUT_TYPE_XML;
TemplateHelper.OUTPUT_TYPE_HTML;
TemplateHelper.OUTPUT_TYPE_UIX;
TemplateHelper.OUTPUT_TYPE_AWT;
TemplateHelper.OUTPUT_TYPE_TEXT;
TemplateHelper.OUTPUT_TYPE_XSLFO;
TemplateHelper.OUTPUT_TYPE_FO;
TemplateHelper.OUTPUT_TYPE_ETEXT;
public boolean applyTemplate(int pConcurrentRequestId, byte pTemplateOutputType)
Properties properties = new Properties();
File xmlFile;
InputStream fis = null;
OutputStream fOs = null;
try
CpContext context = getPCpContext();
String applShortName = getPCpContext().getReqDetails().getGeneralInfo().getApplShortName();
String progName = getPCpContext().getReqDetails().getGeneralInfo().getProgName();
xmlFile = new File(VCADirectories.getConcurrentFile(this.getConn(), pConcurrentRequestId));
fis = new FileInputStream(xmlFile);
fOs = new FileOutputStream(context.getOutFile().getFileName() + "_1.PDF");
Logger.setLevel(Logger.UNEXPECTED);
/* note: concurrent program name must match up with application short name (VCA)
* and template code (concurrent program short name)....
TemplateHelper.processTemplate(context, applShortName, progName, "en", "US", fis, pTemplateOutputType, properties, fOs);
catch (Exception e)
getLogFile().writeToLogFileError(e.toString(), "VCAConcurrentBase", "applyTemplate()");
return false;
finally
try
fis.close();
fOs.flush();
fOs.close();
catch (Exception exception)
getLogFile().writeToLogFileError("Error closing file input/output stream " + exception.toString(), "VCAConcurrentBase", "applyTemplate()");
return false;
return true;
} -
Text file generation in labview
Can I generate a text file in labview and it could only be operated in labview. No one can see it and read or write it in case the data lost.
Thanks.Are you looking for some form of encryption?
If you open a file in LabVIEW, you can set the file locking (optional input: "deny mode") to determine if other applications have simultaneous access to it or not while it is open in LabVIEW. If your OS supports it, you can also set the access right using "access rights.vi".
Maybe I don't understand the second part of the question but if the data is lost, no one can read it anyway or it wouldn't be lost. Right?
Could you explain in a bit more detail what you want to do.
LabVIEW Champion . Do more with less code and in less time . -
Quarterly TDS Return generation-Text file problem
Hi
I am working in 4.7 and doing with the TDS Quartrly return. In the text file generation, nothing is coming except some '^' s and 0s. I applied note 873149. Still the problem is not over.
Any help would be highly appreciated.
RegardsHi
I have maintained the section codes and recipient types as well. At the time of quarterly return generation, the excel file is OK. Whereas the text file is having only 0s and ^s. I applied a note for this already. Still it is not resolved. -
What is the size limit of TEXT file while dumping a report through iBot?
Hi Gurus,
We have Siebel Analytics 7.8.5. We need to dump a huge report in text file through iBot for data processing.
But we need to know Is there any limit for TEXT file generation through iBot?
Thanks in Advance
Regards
Sudipta
Edited by: Sudipta Gupta on Sep 30, 2011 7:47 PMHi,
I hope you can send 2MB ,if your getting any error try to increase rows in your instanceconfig.xml file kindly do the below things
You need to increase the size and need to include one tag in instanceconfig.xml to increase the size and restart the presentation services.
by default delivers will send only 250 records.
take a original backup and the do it
insert the following code into instanceconfig.xml.
<Views>
<Table> <DefaultRowsDisplayedInDelivery>100000</Defau ltRowsDisplayedInDelivery>
</Table>
</Views>
restart all your services.
for more refer
http://oraclebizint.wordpress.com/2007/12/17/oracle-bi-ee-101332-calling-java-scripts-and-java-classes-from-ibots/
Hope this solves the problem...
THanks
Deva -
Setup JFileChooser to accept text files only.
Hello all, I was trying to setup a JFileChooser to accept only text files, so here's the code:
JFileChooser my_filec = new JFileChooser();
my_filec.addChoosableFileFilter(new FileFilter()
public boolean accept(File f)
return (f.getName().endsWith(".txt")|| !f.getName().contains("."));
public String getDescription()
return "Text File (*.txt)";
});and the problem is if I write <return f.getName().endsWith(".txt")> only it can't open foders and when I write <return (f.getName().endsWith(".txt")|| !f.getName().contains("."));>
it can choose files that doesn't have an extension, is there a way to make it choose ONLY folders and text files?
Another question, can I setup JFileChooser to check the file itself if it was a text file written in ANSI for example REGARDLESS of its extension?return (f.getName().toLowerCase().endsWith(".txt") || f.isDirectory());You can open the file and check whatever you wish.
The question is how are you going to decide if the file is a text file or not?
You should also try to keep accept function as short as possible or your file chooser will work very slowly. -
Arbitrary waveform generation from large text file
Hello,
I'm trying to use a PXI 6733 card hooked up to a BNC 2110 in a PXI 1031-DC chassis to output arbitrary waveforms at a sample rate of 100kS/s. The types of waveforms I want to generate are generally going to be sine waves of frequencies less than 10 kHz, but they need to be very high quality signals, hence the high sample rate. Eventually, we would like to go up to as high as 200 kS/s, but for right now we just want to get it to work at the lower rate.
Someone in the department has already created for me large text files > 1GB with (9) columns of numbers representing the output voltages for the channels(there will be 6 channels outputting sine waves, 3 other channels with a periodic DC voltage. The reason for the large file is that we want a continuous signal for around 30 minutes to allow for equipment testing and configuration while the signals are being generated.
I'm supposed to use this file to generate the output voltages on the 6733 card, but I keep getting numerous errors and I've been unable to get something that works. The code, as written, currently generates an error code 200290 immediately after the buffered data is output from the card. Nothing ever seems to get enqued or dequed, and although I've read the Labview help on buffers, I'm still very confused about their operation so I'm not even sure if the buffer is working properly. I was hoping some of you could look at my code, and give me some suggestions(or sample code too!) for the best way to achieve this goal.
Thanks a lot,
Chris(new Labview user)Chris:
For context, I've pasted in the "explain error" output from LabVIEW to refer to while we work on this. More after the code...
Error -200290 occurred at an unidentified location
Possible reason(s):
The generation has stopped to prevent the regeneration of old samples. Your application was unable to write samples to the background buffer fast enough to prevent old samples from being regenerated.
To avoid this error, you can do any of the following:
1. Increase the size of the background buffer by configuring the buffer.
2. Increase the number of samples you write each time you invoke a write operation.
3. Write samples more often.
4. Reduce the sample rate.
5. Change the data transfer mechanism from interrupts to DMA if your device supports DMA.
6. Reduce the number of applications your computer is executing concurrently.
In addition, if you do not need to write every sample that is generated, you can configure the regeneration mode to allow regeneration, and then use the Position and Offset attributes to write the desired samples.
By default, the analog output on the device does what is called regeneration. Basically, if we're outputting a repeating waveform, we can simply fill the buffer once and the DAQ device will reuse the samples, reducing load on the system. What appears to be happening is that the VI can't read samples out from the file fast enough to keep up with the DAQ card. The DAQ card is set to NOT allow regeneration, so once it empties the buffer, it stops the task since there aren't any new samples available yet.
If we go through the options, we have a few things we can try:
1. Increase background buffer size.
I don't think this is the best option. Our issue is with filling the buffer, and this requires more advanced configuration.
2. Increase the number of samples written.
This may be a better option. If we increase how many samples we commit to the buffer, we can increase the minimum time between writes in the consumer loop.
3. Write samples more often.
This probably isn't as feasible. If anything, you should probably have a short "Wait" function in the consumer loop where the DAQmx write is occurring, just to regulate loop timing and give the CPU some breathing space.
4. Reduce the sample rate.
Definitely not a feasible option for your application, so we'll just skip that one.
5. Use DMA instead of interrupts.
I'm 99.99999999% sure you're already using DMA, so we'll skip this one also.
6. Reduce the number of concurrent apps on the PC.
This is to make sure that the CPU time required to maintain good loop rates isn't being taken by, say, an antivirus scanner or something. Generally, if you don't have anything major running other than LabVIEW, you should be fine.
I think our best bet is to increase the "Samples to Write" quantity (to increase the minimum loop period), and possibly to delay the DAQmx Start Task and consumer loop until the producer loop has had a chance to build the queue up a little. That should reduce the chance that the DAQmx task will empty the system buffer and ensure that we can prime the queue with a large quantity of samples. The consumer loop will wait for elements to become available in the queue, so I have a feeling that the file read may be what is slowing the program down. Once the queue empties, we'll see the DAQmx error surface again. The only real solution is to load the file to memory farther ahead of time.
Hope that helps!
Caleb Harris
National Instruments | Mechanical Engineer | http://www.ni.com/support -
How do I return an input stream from a text file
Suppose there's a class with methods..
one of the methods is something like..
public int value() and has a return statement at the end obviously for returning an int value..
Another method reads a text file and creates an input stream..
Scanner data = new Scanner(new File(input.next()));
I want to return the data when I do a call to this method, but I'm not sure what the method heading would look like..flounder wrote:
Are we supposed to magically know what those errors are? Do you think that copying and pasting the exact error messages and indicating the lines they occur on would be useful to us?Sorry about that..
I've replicated the same code below; and put the number of the line where the error is.
+cannot find symbol variable read [line 21]+
+cannot find symbol variable read [line 23]+
+cannot find symbol variable read [line 29]+
+cannot find symbol variable read [line 31]+
+cannot find symbol variable inputStream [line 44]+
+calculate() in textInput cannot be applied to (java.util.Scanner) [line 57]+
the reason I have the _______ for the createInputStream() method is because I'm not really sure what the heading type should be to return the input stream.
import java.io.*;
import java.util.*;
public class textInput
public void requestFileName()
Scanner input = new Scanner(System.in);
System.out.print("Enter file name: ");
public _______ createInputStream() throws FileNotFoundException
Scanner input = new Scanner(System.in);
Scanner read = new Scanner(new File(input.next()));
return read;
public void calculate() throws IOException
21 double max;
double min;
23 int count = 0;
double total = 0;
if (read.hasNextDouble())
double temp = read.nextDouble();
29 max = temp;
min = temp;
31 count++
total += temp;
while (read.hasNextDouble())
double current = read.nextDouble();
count++;
min = Math.min(current, min);
max = Math.max(current, max);
total += current;
System.out.println("Max of: " + max);
System.out.println("Min of: " + min);
44 System.out.println("Average of " + total/count);
public void close() throws IOException
inputStream.close();
public static void main(String[] args)
textInput run = new textInput();
try
57 run.requestFileName();
run.createInputStream();
run.calculate();
run.close();
catch(FileNotFoundException e)
System.out.println("File not found.");
System.exit(0);
catch(IOException e)
System.out.prinln("File not found.");
System.exit(0);
} -
How to know they is space or carrier return when java read a text file.
Hi,
Please help.
How to know they is space or carrier return when java read a text file.
The reason is that. I want to use java for loop to read each part of value. for example: first part is the items name. After the space (I need to tell java when this is a space here and its need to skip) , following by the items prices in double value and space again (need to skip also) and etc.
item name1
item name2
item name3
item name4
item name5
<--- here is the space to skip and another loop to read following items prices
item price1
item price2
item price3
item price4
item price5
<--- here is another spcae again. and so on
thank in advance!You can check to see if the sting you read in is just nothing, depending on how you're reading it in:
if((str = inStream.readLine().trim().equals("")))
// skip and get ready for the next section
else
// handle the next item
The trim() method gets rid of all leading and trailing spaces and I'm assuming you're using a stream that can use the readLine() method that returns a String.
I hope this is clear. Let me know if it isn't, I'll try and word it different, or post how you're reading the values in if you need more help. -
Soft return in tagged text file
Hi, anyone has example of using a End of line (soft return) in tagged text file?
i tried using <0x000A> but it does not work. Advice needed.
TkzSo it does. It also drops it if you export in GB 18030. I would file a bug report:
https://www.adobe.com/cfusion/mmform/index.cfm?name=wishform
Only workaround I can think of would be to enter some other unique character (maybe |?) and find/replace it in ID after bringing in the tagged text.
Ken
Hold on, I tried exporting tagged text and then bringing it back in. It's not dropping the forced line break. It's exporting it as a single Line Feed (hex 0a). And it interprets that as a forced line break when importing back in. My text editor ignores Line Feeds. I had to look at it in a hex editor to see the 0a.
I don't know if that helps any. However you're producing the tagged text, you would need to be able to make it enter a line feed without the carriage return.
Ken -
Returning strings of the same name in a text file from an array
Hi,
Another quick question. I have a text file with lines consisting of one integer, and four strings. Currently, I am able to search through this file and find any of the variables listed within. However, if any of the variables are listed more than once, and I search for that particular varable name, it only prints out the first line containing that particular variable name.
Basically, how do I modify the following code so that the search method returns all the instances of a particular variable name in the text file?
My current code is as follows,
1. Search method,
public Title lookUpDirector(String requiredDetails) {
boolean found = false;
int next = 0;
while (!found && (next<TitleCount))
if ( TitleArray[next].getDirector().equals(requiredDetails))
found = true;
else next++;
if (found) return TitleArray[next];
else return null;
}2. Test main class
import simplejava.*;
public class SearchTitleDirector
public static void main(String[] args) {
String titleDetails;
SimpleReader keyboard = new SimpleReader();
SimpleWriter screen = new SimpleWriter();
SimpleReader inFile = new SimpleReader("title_test.txt");
TitleList title = new TitleList(inFile);
TitleList[] sortedArray = new TitleList[]{title};
titleDetails=keyboard.readLine("Director?");
Title search = title.lookUpDirector(titleDetails);
if (search == null)
screen.println("Not found");
else screen.println(search);
}Any help or advice appreciated!Thanks for the reply and advice.
I have tried implementing the lookUpDirector method as follows,
public TitleList lookUpDirector(String requiredDetails) {
boolean found = false;
int next = 0;
TitleList list = new TitleList();
while (!found && next<titleCount) {
if ( titleArray[next].getDirector().equals(requiredDetails)) {
list.add(titleArray[next]);
next++;
if (found) return list;
else return null;
}When I use this method with the previous test main class, it compiles and runs, but after the user inputs the name of the director to search for, the input window freezes indefinitely and no result is achieved. The output pane in NetBeans is as follows,
init:
deps-jar:
compile-single:
run-single:
Director?The only way to stop the process is to terminate it in the Runtime section of NetBeans.
I have no idea why this is happening. Any advice? -
Text file - carriage return, creating a new line
anyone know how to create a new line in a text file, something which is the text file equivelent of a BR (html) tag.
in windows it's "\r\n"
in linux/unix/bsd it's "\n"
but the best way to do it is
//this will return the newline character for whatever
//platform your program is running on
System.getProperty("line.separator"); -
Write to text file returns no error even if the underlying file is deleted
Hi,
I'm using a CompactRIO and writing to a text file underneath the C drive.
I'm running into an unexpected situation when I am trying to error check my file handling. I assumed that if the underlying file being written to that was created by open/create/replace vi and written to with the "Write to Text File" vi, would return an error if I delete the file from underneath it in the file system., yet there is no reported error and the function carrys on seemingly successfully writing to a file that has been deleted.
Anyone know why this happens and how to potentiallly remedy?Ouch, this obviously isn't ideal but is probably down to the filesystem on the CompactRIO.
I would consider putting in a check - doing something like getting the file position from the file might return an error if the file no longer exists.
Certified LabVIEW Architect, Certified TestStand Developer
NI Days (and A&DF): 2010, 2011, 2013, 2014
NI Week: 2012, 2014
Knowledgeable in all things Giant Tetris and WebSockets -
SQL Loader - Loading Text File into Oracle Table that has carriage returns
Hi All,
I have a text file that I need to load into a table in Oracle using SQL Loader. I'm used to loading csv or comma delimited files into Oracle so I'm not sure what the syntax is when it comes to loading a text file that essentially has one value per row and each row is separated by a carriage return. So when you open the text file, the records look like this:
999999999 <CRLF>
888888889 <CRLF>
456777777 <CRLF>
456555535 <CRLF>
345688888 <CRLF>
So each row is separated by a hard return and I need to tell sql loader that the hard return or next row is the next value to insert into the table. Below is an example of a control file I tend to use as a template for loading csv files but I need to modify it to accomodate this new structure.
OPTIONS (DIRECT=TRUE,ROWS=100000)
UNRECOVERABLE
LOAD DATA
INFILE 'C:\input.txt'
BADFILE 'C:\input.bad'
APPEND
INTO TABLE TEST_TABLE
FIELDS TERMINATED BY ","
TRAILING NULLCOLS
COLUMN_1
How to I modify the control file above to use hard returns as the field/row delimiter for my text file?
ThanksHi there,
Obviously my intention wasn't to post the same message 4 times....I pressed the "Submit Message" button but the submission hung and I pressed it a few times and finally it worked but it created several versions of my post. You need to allow users the ability to delete there own postings...I was looking for this option but didn't have it.
Sorry -
How to know theis a space or carrier return when java read read a text file
Hi,
Please help.
How to know theis a space or carrier return when java read read a text file.
for example a text like this:
5
<---how to let tell java they is a space here
item1
item1
item1
item1
item1
<---how to let tell java they is a space here
item2
item2
item2
item2
item2hi!
The reason is that. I want to use java for loop to read each part of value. for example: first part is the items name. After the space (I need to tell java when this is a space here and its need to skip) , following by the items prices in double value and space again (need to skip also) and etc.
item name1
item name2
item name3
item name4
item name5
<--- here is the space to skip and another loop to read following items prices
item price1
item price2
item price3
item price4
item price5
<--- here is another spcae again. and so on
Thank in advance for your help.
jet
Maybe you are looking for
-
How to delete the problem-solution in Solution Database
Dear Sir, I need to delete the problem-solution in Solution Database which is already created in CRM ( IS01). However, I don't know how to delete. Please advise. Thank you and best regards,
-
Sorry, I don't know what other details I should provide. My friend has a program installed which lets him know out loud what is happening as he navigates, but it's been quite a process for him to attach files; he often requires help and it would cert
-
How do I backspace without deleting all text that is passed over along the way. I want to backspace to the front of a phrase or sentence and insert or correct a character.
-
I lose all my cache and add ons after i restart my pc everytime
i install some add-ons play some online multiplayer games(contract wars,spiral knights) and after i restart my pc,voila,all the add ons and the game cache is gone,i have to load the game again and download the extensions again,and each time i reload
-
Hi I am installing Adobe Document Services on WAS Java (NW04) which inturn installed on MAXDB.During installation i created new Data Volume with 409600 Size.it shutdown and could not able bring up.when i goto Rundirectory and checked file knldiag.er