Reading & Writing from/to OCR
Hi,
Is there a way to read and write the Oracle Cluster Registry.
Are there any API's available for the same.
Thanks
whatis wrote:
I have a SW application running on all nodes in the RAC Cluster.
The SW needs to write data to a place which is visible to all and can be read by all the other nodes. Also it should be able to gather information (especially about failover), so should be able to read from it.The OCR is not used to as a common data store for CRS applications - that is typically what a cluster file system is used for. This allows the same set of directories and files to be visible to applications on each and every cluster node.
The OCR is specific to CRS and should only be used by CRS software.
I found this link on the internet 'C Application Programming Interface to Oracle Clusterware'
http://download.oracle.com/docs/cd/B28359_01/rac.111/b28255/crsref.htm#CHECGHGI
Yes, if you want to create a cluster application that you want to be managed via CRS. But this requires more thought than simply slapping a few calls together in an application to make it cluster enabled.
Is this the correct way to do it? Can reading/writing from/to OCR lead to fatal errors?Unsure whether it is the correct way for the problem you're trying to solve as that problem is pretty still much unknown to us as you have not described it.
Can one corrupt the OCR? Not if the API calls are used and used correctly.
It is a bit strange to see a posting about using the CRS API itself - usually we write our software in the RAC layer (as PL/SQL and Java stored procedures, using the cluster features of the database instances).
Do you intend to only use CRS? Or CRS with ASM and RAC? And why do you want external C application code to make use of cluster services?
Similar Messages
-
TIFF-VIs for reading/writing from/to files
To whom it may concern,
I'm looking for TIFF-VIs for reading/writing from/to files
for Labview 6 without any add-on package.
Unfortunately I can't use TiffRd04 and TiffSv05 from
Koji Ohashi due to the different file format!
Any hints?
Thank you in advance. Best regards from Germany
Udo WeikHi Udo,
did you check these TIFF related libraries? .. maybe one of them is working.
Good Luck -
Reading & writing from MS Excel files in Webdynpro ABAP
Dear experts,
We have a requirement to read and write from an MS excel file in a Webdynpro ABAP based application. The application would be deployed on WAS (Web Application Server) which is running as part of SAP ECC on UNIX platform.
What is not clear is
1) If we store the MS Excel template on the server which has UNIX, will the file be recognised for reading/writing programmatically in Webdynpro ABAP? If this works, we have a requirement where the end users will download the excel template and upload the same after filling data into the excel file. The data filled into the excel has to be read and updated in the SAP backend (ECC).
2) There is an article on "Modifying Excel using WD ABAP" at the following link
https://wiki.sdn.sap.com/wiki/display/WDABAP/ModifyingexistingexcelsheetusingWDABAP
But again it is not clear whether this approach will work on Unix based SAP server (ECC WAS).
Thanks
SureshI don't know if there is an application in Unix that can read Excel files - if that is what you are asking. However that has nothing to do with this forum. If you are uploading the file to ABAP using Web Dynpro ABAP, then it doesn't matter what Operating System the server is running on. Unix, Linux, Windows - all the processing is done in ABAP and is OS independent. The actual reading of the file in ABAP involves reading either an XML or Text Tab Delimited version of the Excel file however - if you read through the links on manipulating Excel in ABAP.
-
Reading/writing from the standard streams of a process
Hi all
I try to start an external program trough my java application and then try to communicate it. After the external process has started, I want to send input to it and get output back from it. That, however, doesn't work.
My external process gives some output data when it starts up, and i can catch this with no problem at all.
Thing is, my program hangs while reading from the stream when there is no more to read from it. How can I read and write to the streams without it stopping and hanging?
Here is some source code I use to test this:
//The constructor
try {
ProcessBuilder pb = new ProcessBuilder(args);
//I combine the error stream with the output now, just to get stuff to work. Will change later
pb.redirectErrorStream(true);
Process p = pb.start();
input = new BufferedReader( new InputStreamReader(p.getInputStream()));
output = new DataOutputStream(new BufferedOutputStream(p.getOutputStream()));
String line = null;
//I get this far, but after the last line of input has been read, I the program seems to stop in this while loop
while( ( (line = input.readLine()) != null) )
System.out.println(line);
}catch(IOException e) {
e.printStackTrace();
//This is code for communication with the process after it's started
output.writeBytes(id);
String t = null;
while( (t = output.readLine() ) != null)
System.out.println(t);
String line = null;
ret[0] = output.readLine();
while( ( (line = output.readLine()) != null) && (!line.startsWith("[")))
ret[1] += line;
ret[2] += error.readLine();
while( (line = error.readLine()) != null)
ret[3] += line;You either have to do read and write in two different threads.
Or if you can modify your external program you can implement some protole which tels the reader that message is orver (Ex:- "OVER" word used when using halfduplex communication devicies)
Or you should meke your program smart enough to understand the external program so it can decide whether there are more data to be read by looking at the data which is already read.
Or you can use the method available() in the input stream which return the number of bytes that can be read without blocking. But this can be problamatic since when you call it it mighe return 0 when there are no data at the your end of the pipe but the external program is actually writing to the pipe -
Image Reading Writing from TIFF format
I have tiff files which contain average 30 images, i want to split it in batch. batch can be of 5 images or 10 images, it can be varry.
Pls Help....
DivyeshJava ImageIO can do this for you. You'll need to do a bit of reading about it, there is plenty to digest on this forum and in various parts of the internet.
If you have any further, more specific questions, please ask. -
Problem on reading and writing from from a *.txt file
I get Problem on reading and writing from from a *.txt file. The following is the read() method...
The software said the DataInputStream is depreciated. Can anyone help me please?
public void read()
File file = new File("C://Documents and Settings//Charles//My Documents//Brunel//EE2065//Assignment and Lab//Assignment 4 and Lab 4//data.txt");
FileInputStream in = null;
String str = "";
try
in = new BufferedReader(file);
//in = new FileInputStream(file);
for(;;)
str = new BufferedReader(in).readLine();
//str = new DataInputStream(in).readLine();
if(str == null)
break;
System.out.print(str);
in.close();
catch(IOException e)
System.err.println("execution error: " +e);
}Thank you for your reply. I have made some change. However, there is an incompetable type found error.
in = new BufferedReader(new InputStreamReader(in));The following are all of the code.
public void read()
File file = new File("C://Documents and Settings//Charles//My Documents//Brunel//EE2065//Assignment and Lab//Assignment 4 and Lab 4//data.txt");
FileInputStream in = null;
//BufferedReader in = null;
String str = "";
try
in = new BufferedReader(new InputStreamReader(in));
//in = new FileInputStream(file);
for(;;)
BufferedReader Bstr = new BufferedReader(new InputStreamReader(in));
//str = new BufferedReader(in).readLine();
//str = new DataInputStream(in).readLine();
if(str == null)
break;
System.out.print(str);
in.close();
catch(IOException e)
System.err.println("execution error: " +e); -
READING AND WRITING FROM A FILE(WRITTEN IN ANOTHER LANGUAGE)
# Comment
INTEGER Declares integer type variable
STRING Declares string type variable
LET Assigns a variable
CALCULATE Performs an arithmetic calculation
PRINT Writes data to the console
PRINTLN As print, but followed by a new line
END Terminates the program
Each line of the program must begin with one of these words, and the language should not be case sensitive.
Tim Brailsford, 2007
G64ICP
COMMENT
Any line beginning with the # character is completely ignored.
Example:
# ignore this line!
INTEGER
The INTEGER reserved word declares an Integer variable, and assigns a default value of 0 to it.
Example:
INTEGER myInt
This example is equivalent to the Java statment "int myInt=0;"
STRING
The STRING reserved word declares a String variable, and assigns an empty string to it.
Example:
STRING myString
This is equivalent to the Java statement "String myString;"
LET
This assigns values to variables (either integers, or strings enclosed
in double quotes).
Examples:
LET myInt=42
LET myString="Hello World!"
CALCULATE
This performs numeric calculations upon values or variables, and assigns the result to a variable (which must have
been declared earlier). Four operators are supported: + *
and / (for addition, subtraction multiplication and
integer division respectively).
Examples:
CALCULATE myInt=2*2
CALCULATE myInt=myInt+24
CALCULATE myInt=intA/intB
PRINT and PRINTLN
These words both print to the console the
only difference being that PRINTLN appends a new line (as does
System.out.println in Java). These can print either text provided as an argument, or variables (string or integer).
Examples:
PRINTLN "Hello World!"
PRINT myString
PRINTLN myInt
END
This terminates the program, and prints a message to that effect.
TPL Example
To the left is an example TPL input file , to
calculate the factorial of 5. This should produce
an output similar to that shown overleaf (except
that calculates the factorial of 10).
# A TPL Program to calculate the factorial of 5
INTEGER myInt
INTEGER factorial
STRING myString
LET mystring="Factorial Program"
LET myInt=5
CALCULATE factorial=myInt*4
CALCULATE factorial=factorial*3
CALCULATE factorial=factorial*2
Tim Brailsford, 2007
G64ICP
PRINTLN mystring
PRINTLN
PRINT "The factorial of "
PRINT myInt
PRINT " is "
PRINTLN factorial
END
Documentation
Document your code by writing instructions explaining how to run it, listing all of the files you have submitted,
and specifying any limitations (eg you might want to say what platforms you would expect it to run on, and what
platforms you have tested it on). This document should be written as a plain text file (ie ASCII � MS Word binary
files are not acceptable) � and this file should be called README.TXT. This file should constitute the user
manual of your program, and should explain exactly how to use your program.
The README file should be the user manual for your language as implemented.
NB:
I want it to read values from the file as given above and execute the answer in the command prompt( as intented in the file above)
Thanks
Alam IkennaHai I have one doubt in doing other peoples homework for them. Why bother?
-
Stax reading /writing need help from xml guru plz
hi, i have been told that stax reading /writing should involve no overhead and that is why i use it and i am now able to write my large data to file, but using my reader i seem to run out of memory, using netbeans profiler i ahve found that char[] seems to be the problem,
by backtracing i ahve found that javax.xml.parser.SAXParser.parse calls the xerces packages which eventually leads to the char[ ], now my code for my reader is attatched here...
package utilities;
import Categorise.Collection;
import Categorise.Comparison;
import Categorise.TestCollection;
import java.io.IOException;
import javax.xml.parsers.*;
import org.xml.sax.SAXException;
import org.xml.sax.helpers.DefaultHandler;
import org.xml.sax.Attributes;
import java.io.File;
import java.util.ArrayList;
import java.util.List;
import measures.Protocol;
* @author dthomas
public class XMLParser extends DefaultHandler
static Collection collection = new Collection();
List<Short> cList;
List<Comparison> comparisonList;
File trainFileName;
File testFileName;
TestCollection tc;
List<TestCollection> testCollectionList;
List<File> testFileNameList = new ArrayList<File>();
List<File> trainFileNameList = new ArrayList<File>();
boolean allTrainsAdded = false;
Protocol protocol;
List<File> trainingDirList;
File testingDir;
int counter = 0;
File[ ] trainingDirs;
File[ ] trainingFileNames;
File[ ] testFileNames;
TestCollection[ ] testCollections;
Comparison[ ] comparisons;
Comparison c;
short[ ] cCounts;
String order;
String value;
File trainDir;
/** Creates a new instance of XMLParser */
public XMLParser() {
public static Collection read( File aFile )
long startTime = System.currentTimeMillis();
System.out.println( "Reading XML..." );
SAXParserFactory spf = SAXParserFactory.newInstance();
SAXParser sp;
try {
sp = spf.newSAXParser();
sp.parse( aFile, new XMLParser() );
} catch (IOException ex) {
ex.printStackTrace();
} catch (SAXException ex) {
ex.printStackTrace();
} catch (ParserConfigurationException ex) {
ex.printStackTrace();
long endTime = System.currentTimeMillis();
long totalTime = ( endTime - startTime ) / 1000;
System.out.println( "Done..." + totalTime + " seconds" );
return collection;
public void startElement(String uri,String localName,String qName, Attributes attributes)
if( qName.equals( "RE" ) )
testCollectionList = new ArrayList<TestCollection>();
else if( qName.equals( "p") )
boolean isConcatenated = new Boolean( attributes.getValue( "c" ) );
boolean isStatic = new Boolean( attributes.getValue( "s" ) );
protocol = new Protocol( isConcatenated, isStatic );
else if( qName.equals( "trdl" ) )
trainingDirList = new ArrayList<File>();
else if( qName.equals( "trd" ) )
trainDir = new File( attributes.getValue( "fn" ) );
trainingDirList.add( trainDir );
else if( qName.equals( "td" ) )
testingDir = new File( attributes.getValue( "fn" ) );
else if( qName.equals( "TC" ) )
counter++;
System.out.println( counter );
comparisonList = new ArrayList<Comparison>();
testFileName = new File( attributes.getValue( "tfn" ) );
testFileNameList.add( testFileName );
tc = new TestCollection( );
tc.setTestFileName( testFileName );
else if ( qName.equals( "r" ) )
order = attributes.getValue( "o" );
value = attributes.getValue( "v" );
cList.add( Short.parseShort( order ), new Short( value ) );
else if( qName.equals( "c" ) )
cList = new ArrayList<Short>();
trainFileName = new File( attributes.getValue( "trfn" ) );
if( !allTrainsAdded )
trainFileNameList.add( trainFileName );
public void characters(char []ch,int start,int length)
//String str=new String(ch,start,length);
//System.out.print(str);
public void endElement(String uri,String localName,String qName)
if (qName.equals( "c") )
allTrainsAdded = true;
cCounts = new short[ cList.size() ];
for( int i = 0; i < cCounts.length; i++ )
cCounts[ i ] = cList.get( i );
c = new Comparison( trainFileName, tc );
c.setcCounts( cCounts );
this.comparisonList.add( c );
else if( qName.equals( "TC" ) )
comparisons = new Comparison[ comparisonList.size() ];
comparisonList.toArray( comparisons );
tc.setComparisons( comparisons );
testCollectionList.add( tc );
else if( qName.equals( "RE" ) )
testCollections = new TestCollection[ testCollectionList.size() ];
testCollectionList.toArray( testCollections );
collection.setTestCollections( testCollections );
testFileNames = new File[ testFileNameList.size() ];
testFileNameList.toArray( testFileNames );
collection.setTestingFiles( testFileNames );
//String[ ] testCategories = new String[ testCategoryList.size() ];
//testCategoryList.toArray( testCategories );
//collection.setTestCategories( testCategories );
trainingFileNames = new File[ trainFileNameList.size() ];
trainFileNameList.toArray( trainingFileNames );
collection.setTrainingFiles( trainingFileNames );
//String[ ] trainingCategories = new String[ trainCategoryList.size() ];
//trainCategoryList.toArray( trainingCategories );
//collection.setTrainingCategories( trainingCategories );
collection.setProtocol( protocol );
trainingDirs = new File[ trainingDirList.size() ];
trainingDirList.toArray( trainingDirs );
collection.setTrainingDirs( trainingDirs );
collection.setTestingDir( testingDir );
//else
//System.out.println("End element: {" + uri + "}" + localName);
}i thought it may have been a recursive problme, hence having so many instance variables instead of local ones but that hasn't helped.
all i need at the end of this is a Collection which holds an array of testCollections, which holds an array of cCounts and i was able to hold all of this in memory as all i am loading is what was in memory before it was written.
can someone plz help
ps when i use tail in unix to read the end of the xml file it doesnt work correctly as i cannot specify the number of lines to show, it shows all of the file as thought it is not split into lines or contains new line chars or anything, it is stored as one long stream, is this correct??
here is a snippet of the xml file:
<TC tfn="
/homedir/dthomas/Desktop/4News2/output/split3/alt.atheism/53458"><c trfn="/homed
ir/dthomas/Desktop/4News2/output/split0/alt.atheism/53586"><r o="0" v="0"></r><r
o="1" v="724"></r><r o="2" v="640"></r><r o="3" v="413"></r><r o="4" v="245"></
r><r o="5" v="148"></r><r o="6" v="82"></r><r o="7" v="52"></r><r o="8" v="40"><
/r><r o="9" v="30"></r><r o="10" v="22"></r><r o="11" v="16"></r><r o="12" v="11
"></r><r o="13" v="8"></r><r o="14" v="5"></r><r o="15" v="2"></r></c><c trfn="/
homedir/dthomas/Desktop/4News2/output/split0/alt.atheism/53495"><r o="0" v="0"><
/r><r o="1" v="720"></r><r o="2" v="589"></r><r o="3" v="349"></r><r o="
please if anyone has any ideas from this code why a char[] would use 50% of the memory taken, and that the average age seems to show that the same one continues to grow..
thanks in advance
danny =)hi, i am still having lo luck with reading the xml data back into memory, as i have said before, the netbeans profiler is telling me it is a char[] that is using 50% of the memory but i cannot see how a char[] is created, my code doesn't so it must be the xml code...plz help
-
I am writing datas into a FIFO in FPGA Target side ,i am reading datas from fifo in windows host side .but when i am writing datas like a a(0),a(1),a(2 like that.when i am reading dating datas a(0)comes to a(3 ) rd place, a(1) comes to a a(0) .what is the reason ?
Please use a shorter title in your subject line and not post the entire question in therre. (See the subject line I created.) There is also no such word as "datas". Data is already plural.
Please read http://stackoverflow.com/help/how-to-ask. Your question is hard to read because you aren't using proper punctuation and capitalization of your sentences. It looks like one run-on sentence.
Beyond that, it is impossible to help you solve our problem with just your question. Please provide some more information. Perhaps even attach code we can look at. Show us what the data you are sending is supposed to look like, and what it actually looks like. -
An exception occurred while reading or writing from/to the IIS server
Hi All,
I am trying to install and configure calendar connectivity in EP6 sp9.
As mentioned in
http://help.sap.com/saphelp_nw04/helpdata/en/1d/3d59fdaa5ebb45967ea107d3fa117a/frameset.htm, i have installed MSX-A component and On testing MSX-A Component i am not getting any error.
Also log file looks like this.
BEGIN 3/8/2005 10:09:00 AM----
URL: HTTP://10.10.18.213:8080/Calendar.asp
URL Parameters: Server=10.10.18.205&Alias=[email protected]&Action=READ&StartDate=200503081007&EndDate=200503091007&Email=[email protected]&Debug=true
Reponse: <?xml version='1.0' encoding='UTF-8' standalone='yes'?>
<!DOCTYPE OUTPUT [<!ELEMENT OUTPUT (FAILURE|APPOINTMENTS)>
<!ELEMENT FAILURE (ERRORNUMBER?, ERRORMESSAGE?, CLASSNAME?, METHODNAME?, LINENUMBER?, PARAMETERS?)>
<!ELEMENT ERRORNUMBER (#PCDATA)>
<!ELEMENT ERRORMESSAGE (#PCDATA)>
<!ELEMENT CLASSNAME (#PCDATA)>
<!ELEMENT METHODNAME (#PCDATA)>
<!ELEMENT LINENUMBER (#PCDATA)>
<!ELEMENT PARAMETERS (#PCDATA)>
<!ELEMENT APPOINTMENTS (APPOINTMENT*)>
<!ELEMENT APPOINTMENT (ID, SUBJECT?, LOCATION?, STARTDATE, ENDDATE, MEETINGTYPE, ALLDAY, RECURRING, BUSYSTATUS?)>
<!ELEMENT ID (#PCDATA)>
<!ELEMENT SUBJECT (#PCDATA)>
<!ELEMENT LOCATION (#PCDATA)>
<!ELEMENT STARTDATE (#PCDATA)>
<!ELEMENT ENDDATE (#PCDATA)>
<!ELEMENT MEETINGTYPE (#PCDATA)>
<!ELEMENT ALLDAY (#PCDATA)>
<!ELEMENT RECURRING (#PCDATA)>
<!ELEMENT BUSYSTATUS (#PCDATA)>]><OUTPUT><APPOINTMENTS></APPOINTMENTS></OUTPUT>
END 3/8/2005 10:09:00 AM----
i have created calendar repository and exchange system on the portal and now i am getting this error in MyAppointment iView in <i>Content Provided by SAP</i>.
<i><b>An exception occurred while reading or writing from/to the IIS server.</b></i>
i would appreciate if you please help me urgently
thanx and regards
Santosh ChoudharyHi Akhilesh,
I am able to browse HelloWorld.asp in same website. Also i am not getting any error while testing data retrieval through SAPPXchTest.exe, log file looks like this.
<b>IIS Log File</b>
IIS Log File
#Software: Microsoft Internet Information Services 5.0
#Version: 1.0
#Date: 2005-03-18 04:44:58
#Fields: date time c-ip cs-username s-ip s-port cs-method cs-uri-stem cs-uri-query sc-status cs(User-Agent)
2005-03-18 04:44:58 10.10.18.213 - 10.10.18.213 8080 GET / - 401 Mozilla/4.0(compatible;MSIE6.0;WindowsNT5.0)
2005-03-18 04:45:05 10.10.18.213 santoshc 10.10.18.213 8080 GET / - 200 Mozilla/4.0(compatible;MSIE6.0;WindowsNT5.0)
<b>Application Log File</b>
BEGIN 3/18/2005 10:18:31 AM----
URL: HTTP://10.10.18.213:8080/Calendar.asp
URL Parameters: Server=10.10.18.205&[email protected]&Action=READ&StartDate=200503161151&EndDate=200503171151&[email protected]&Debug=true
Reponse: <?xml version='1.0' encoding='UTF-8' standalone='yes'?>
<!DOCTYPE OUTPUT [<!ELEMENT OUTPUT (FAILURE|APPOINTMENTS)>
<!ELEMENT FAILURE (ERRORNUMBER?, ERRORMESSAGE?, CLASSNAME?, METHODNAME?, LINENUMBER?, PARAMETERS?)>
<!ELEMENT ERRORNUMBER (#PCDATA)>
<!ELEMENT ERRORMESSAGE (#PCDATA)>
<!ELEMENT CLASSNAME (#PCDATA)>
<!ELEMENT METHODNAME (#PCDATA)>
<!ELEMENT LINENUMBER (#PCDATA)>
<!ELEMENT PARAMETERS (#PCDATA)>
<!ELEMENT APPOINTMENTS (APPOINTMENT*)>
<!ELEMENT APPOINTMENT (ID, SUBJECT?, LOCATION?, STARTDATE, ENDDATE, MEETINGTYPE, ALLDAY, RECURRING, BUSYSTATUS?)>
<!ELEMENT ID (#PCDATA)>
<!ELEMENT SUBJECT (#PCDATA)>
<!ELEMENT LOCATION (#PCDATA)>
<!ELEMENT STARTDATE (#PCDATA)>
<!ELEMENT ENDDATE (#PCDATA)>
<!ELEMENT MEETINGTYPE (#PCDATA)>
<!ELEMENT ALLDAY (#PCDATA)>
<!ELEMENT RECURRING (#PCDATA)>
<!ELEMENT BUSYSTATUS (#PCDATA)>]><OUTPUT><APPOINTMENTS></APPOINTMENTS></OUTPUT>
END 3/18/2005 10:18:31 AM----
But when i am Testing it from the Portal i am getting this error.
I have created Exchange Transport that whose configuration looks like this:
System Alias : myExchange
Domain : mydomain
exchange server : 10.10.18.205
IIS server : 10.10.18.213
Port : 8080
Protocol : Http
Exchange is the Name of System and Alias name is myExchange.
Hope this will help you to solve my problem.
Thanks and regards,
Santosh Choudhary<b></b><b></b> -
Open Data Set Error while trying to read file from non SAP server
Hi all,
is it possible to read data from non-SAP application Sever?
I'm using OPEN DATASET p_filin FOR INPUT IN LEGACY TEXT MODE CODE PAGE '1504',
Where p_filin is other Windows server.Our applicition server is under Unix.Is it a problem?
I make test to read file from SAP application server and it was ok.So how to call other server?
Thanks!Hi,
Yes it is possible to read data from a non SAP server through the statement OPEN DATASET.
The important thing to check is that the SAP Server got enough access to the non SAP server so it can perform a reading/writing process depending on your needs.
You should contact your network administrator and BASIS to help you check the permissions. This can be pretty tricky, specially if the servers are in different domains.
Regards,
Gilberto Li -
Reading Data from a SQL table to a Logical file on R/3 appl. Server
Hi All,
We would like to create Master Data using LSMW (direct Input) with source files from R/3 Application Server.
I have created files in the'/ tmp/' directory however I do not know how to read data from the SQL table and insert it into the logical file on the R/3 application server.
I am new to ABAP , please let me know the steps to be done to acheive this .
Regards
- AjayHi,
You can find lot of information about Datasets in SCN just SEARCH once.
You can check the code snippet for understanding
DATA:
BEGIN OF fs,
carrid TYPE s_carr_id,
connid TYPE s_conn_id,
END OF fs.
DATA:
itab LIKE
TABLE OF fs,
w_file TYPE char255 VALUE 'FILE',
w_file2 TYPE char255 VALUE 'FILE2'.
SELECT carrid connid FROM spfli INTO TABLE itab.
OPEN DATASET w_file FOR OUTPUT IN TEXT MODE ENCODING DEFAULT. "Opening a file in Application
" Server to write data
LOOP AT itab INTO fs.
TRANSFER fs TO w_file. "" Writing the data into the Application server file
ENDLOOP.
CLOSE DATASET w_file.
OPEN DATASET w_file FOR INPUT IN TEXT MODE ENCODING DEFAULT. "Opening a file in Application
" server to read data
FREE itab.
DO.
READ DATASET w_file INTO fs.
IF sy-subrc EQ 0.
APPEND fs TO itab.
OPEN DATASET w_file2 FOR APPENDING IN TEXT MODE ENCODING DEFAULT. "Appending more data to the file in the
" application server
TRANSFER fs TO w_file2.
CLOSE DATASET w_file2.
ELSE.
EXIT.
ENDIF.
ENDDO.
Regards
Sarves -
Reading/writing to serial port w/ VISA in Labview
I'm writing a Labview program to control and to read data from a Varian vacuum pump controller. It is connected to the serial port in my computer, and I have been trying to open a VISA session to communicate with the instrument. So far, however, the computer cannot see the instrument--I get the same error messages reading and writing to the instrument as I do to an empty serial port. Does anyone have any suggestions on what the problem might be? Thank you.
There are a lot of possiblities. Is the cable correct? You probably need a crossover cable (TX and RX) swapped. You also need to check and make sure the serial ports on both ends are set the same (i.e. baud rate, handshaking, stop bits, etc.). Make sure that the port is enabled. I've seen people try to use a comm port only to find that a modem card installation caused the port to be disabled. You could also try using hyperterminal to talk to the instrument. If you can communicate there, you can eliminate any hardware problem.
-
Cannot see optical drive or read files from superdrive
This is my first ever posting so I apologize if I’m giving too much info.
A couple years ago I installed a Pioneer DVD-RW DVR 107D in the top bay of my G4 (mirrored doors) and put the combo drive (Philips CDD5105) in the bottom bay. Back then I was running OS 9. All worked well, and continued to after I decided to start using OS X. I continued updating all the way up to 10.4.8 (I have avoided updating to 10.4.9 since it caused issues on our IBook). About a year ago the combo drive would come and go (in the system profiler) but the super drive was still working fine. Over the past year strange things began happening. If I would insert a kids games CD it would cause a kernel panic. So I simply used our Ibook to let my daughter play reader rabbit. For about the past 6 months the combo drive has not been recognized in system profiler. But other than the kids cds the super drive seemed to be working well reading & writing both CDs & DVDs. Then it began to error out burning CDs saying they could not be verified but the CDs were turning out ok it was burning DVDs without a problem. Within the last couple weeks it stopped recognizing files correctly. If it is an image or ai document it would say the files could not be opened and it would also not open installers of any kind. I finally decided to try to get it fixed. Last weekend I ran Tech tool & optimized the hard drives and low and behold it was fixed. Combo drive was back & working, Super drive was working correctly & the kids CDs did not cause problems either. This lasted for about 4 days of very infrequent use and all the problems were back. Then yesterday after being off for a couple days I started it up and all was ok again. So I left it on over night planning to make a disk image of it today. At this point I had a theory that my set up might be causing the problem. Since I had been running OS X it was installed and running on a second hard drive I had installed connected to a slave bus while OS 9 was still on the original hard drive connected to the master bus. So I cleaned off the main hard drive and thought since it was working correctly I could transfer the system & apps to the other hard drive and save the working disk image. But of coarse in the middle of transferring files around the combo drive vanished again and the super drive won’t read files correctly. So I decided to reinstall from my OS 10.4 DVD on the main hard drive and reinstall all my apps. But I can’t get it to read or boot up from the DVD. I tried running Tech Tool again with no luck.
Could this be as simple as a bad preference or something?
Here are the machine specs
Machine Name: Power Mac G4
Machine Model: PowerMac3,6
CPU Type: PowerPC G4 (2.1)
Number Of CPUs: 2
CPU Speed: 867 MHz
L2 Cache (per CPU): 256 KB
L3 Cache (per CPU): 1 MB
Memory: 1.75 GB
Bus Speed: 133 MHz
Boot ROM Version: 4.4.8f2
PowerPC G4 dual 867 Mac OS X (10.4.8)The only thing that seems strange about it being the drives is that whenever the combo drive disappears from the menu the super drive will simultaneously not read files correctly and cause kernel panics etc. And when the combo drive can be seen both drives work with no problems. Would that system still point to failing hardware? It just seems that since it's either both or neither that something that effects them both would be the culprit. Since I posted I was able to reload tiger & after the restart the problem returned. Then another restart it was fine all day. To your point replacement drives are reasonably priced & easy to install so I probably should just get one & try it.
Thanks for your advise
Carl -
Hello!
I just registerd here from my iMac computer running on? Nope, its not running on any OS, im writing from the recorvery menu ;(
I erased my whole disk, and i lost my install disc that came with my 27'' iMac...
I dont know what to do, i do not have any money on my Apple Account..
Is there a way i can borrow a account from you? Or is there a way i can get a new cd sended to my adress?
I live in Singapore.
Thank you for reading, and hopefully we can get some good answers!
NoztraInternational Technical Support Numbers
http://www.apple.com/support/contact/phone_contacts.html
I am unfamiliar with the recovery manager. Here are two guesses.
-- Is system profiler around? It will tell you your serial number.
Report system info
Blue apple > about this Mac
click on more info
click on hardware
You serial number will appear after Boot ROM. Do not copy hear.
--- The newer machines include a recovery partition. Perhaps looking around recovery manager would reveal something.
Robert
Maybe you are looking for
-
Error while installing SAP on Linux
Hi all while i am trying to install SAP 4.6C on SUSE LINUX i am getting a strange type of error.Please look into it and send solutions ASAP. ERROR: ERROR 2006-08-30 15:04:51 CENTRDIRCHECK_IND_IND InternalInstallationDo:0 The filesystem/directory
-
Blu-ray disc chapter buttons not working on authored disc.
Hi all, I've created many SD dvd's with chapter menus without problem. However, my first attempt at a blu-ray disc is causing me trouble. I'm running Enore CS4 under Windows 7. I had to install the "pxengine4_18_16a" driver because Encore CS4 was han
-
Mortgage Servicing Sold and 16-18 point hit occurs
I wasn't happy with Ocwen servicing and some of their tactics, but I am even more unhappy with Nationstar at this point.I have 2 mortgages on 2 properties.I was past the 740 mark with TU 08 and quickly approaching 740 with EQ 08 and EX 08. Ocwen sold
-
I have saved many PDF files from my mails - when I want to open (Adobe Reader on Samsung tablet) the file last saved I have no possibility find it simply by sorting file list by time - (list is fixed by name only) - how to change list order?.
-
Holding option key can not switch to xp or mac os x
hello, i just installed xp sp2 in my mac book. everything is running perfect. only problem is that when i turn on my mac book and hold the option key, the icons of the mac and xp supposed to show up, but its not. only have a icon of a locker, need en