Creating asc files
how to create asc files
creating files with .asc extension
File file = new FIle("something.asc");
file.createNewFile();
Similar Messages
-
Error while creating logical file using transaction FILE
Hello there,
I am facing an error while creating Logical File name definition using transaction FILE
This is the input which I'm trying to give
Logical file name: ZTEST
Name : ZTEST
Physical file : ZTEST_1<DATE><TIME>.csv
Data format: ASC
Application area: BW
Logical path:ZTEST_1_DATAOUT
when I tried to save it throws me an error like ASSIGN_SUBSTRING_NOT_ALLOWED
Please help.Hi,
Please check the OSS Notes :
Note 792061 - SP Case Locator: Dump: ASSIGN to a substring isn't allowed.
SAP Note 1297989 - Short dump ASSIGN_SUBSTRING_NOT_ALLOWED
Hope this solves the problem.
-Vikram -
Unable to Create a file in a directory through a Job
Hi,
We have a anonymous block which uses utl_file package
It created a file in an oracle directory.
Oracle Database 11g Enterprise Edition Release 11.1.0.7.0 - Production
PL/SQL Release 11.1.0.7.0 - Production
CORE 11.1.0.7.0 Production
TNS for 32-bit Windows: Version 11.1.0.7.0 - Production
NLSRTL Version 11.1.0.7.0 - Production
DECLARE
v_definition_clob CLOB;
v_codes VARCHAR2 (32767);
v_engine_name application.NAME%TYPE := 'CLAIMS';
v_knwldgebase_name knowledge_base.NAME%TYPE := 'CLAIMS';
v_rule_name VARCHAR2 (32767);
v_msg VARCHAR2 (200);
fid UTL_FILE.file_type;
BEGIN
fid :=
UTL_FILE.fopen ('MID5010_DOC1TEMP', 'Diagnosis_Report.csv', 'W', 32767);
UTL_FILE.put_line (fid, 'Rule Name ,Associated Codes');
FOR rule_name IN (SELECT DISTINCT rh.NAME, rh.rule_header_id
FROM rule_header rh,
knowledge_base kb,
application app
WHERE
app.application_id = kb.application_id
AND rh.knowledge_id = kb.knowledge_base_id
AND app.NAME = 'CLAIMS'
AND kb.NAME = 'CLAIMS')
LOOP
v_codes := NULL;
BEGIN
SELECT definition
INTO v_definition_clob
FROM rule_header
WHERE rule_header_id = rule_name.rule_header_id;
EXCEPTION
WHEN NO_DATA_FOUND
THEN
v_definition_clob := EMPTY_CLOB ();
WHEN TOO_MANY_ROWS
THEN
v_definition_clob := EMPTY_CLOB ();
END;
DBMS_OUTPUT.ENABLE (50000000);
FOR code_indx IN (SELECT d.diagnosis_code AS code
FROM midev.diagnosis d
WHERE d.diag_ctgry_lkpcd = 'D' AND ROWNUM < 10
ORDER BY 1 ASC)
LOOP
IF REGEXP_INSTR (v_definition_clob, code_indx.code) > 0
THEN
v_codes := v_codes || code_indx.code || '|';
END IF;
END LOOP;
IF LENGTH (v_codes) > 0
THEN
v_codes := CHR (39) || v_codes;
END IF;
UTL_FILE.put_line (fid,
REPLACE (rule_name.NAME, ',', ' ')
|| ','
|| SUBSTR (v_codes, 1, LENGTH (v_codes) - 1)
END LOOP;
UTL_FILE.fclose (fid);
EXCEPTION
WHEN OTHERS
THEN
UTL_FILE.fclose (fid);
v_msg := DBMS_UTILITY.format_error_backtrace ();
DBMS_OUTPUT.put_line (v_msg || SQLCODE || ',' || SQLERRM);
END;
Now when i converted anonymous block into a procedure "DIAGNOSIS_REPORT_PROCEDURE" and calling it thorough a job its not creating the file. we are using the below code to create a job
BEGIN
--DBMS_SCHEDULER.drop_job (job_name => 'DIAGNOSIS_TESTING_REPORT_3');
DBMS_SCHEDULER.create_job
(job_name => 'DIAGNOSIS_TESTING_REPORT_3',
job_type => 'STORED_PROCEDURE',
job_action => 'DIAGNOSIS_REPORT_PROCEDURE',
start_date => to_Date('30-Mar-2012 16:44:03','dd-mon-yyyy hh24:mi:ss'),
--repeat_interval => 'freq=yearly',
enabled => TRUE,
comments => 'DIAGNOSIS_TESTING_REPORT_3'
END;Any help would be appreciated..
Thanks
P Prakash.I got the answer.
If we need to run a procedure through job then we must execute privilege . -
Hi all
I have a table LFA1 with headers LIFNR, MANDT, NAME1, NAME2, ...., . That table contains data and I need to create text file that collects all headers with all data, where each field is separated by TAB.
thanks for your help.Here is program for KNA1.
*"Table declarations...................................................
tables:
kna1. " General Data in Customer Master
*"Selection screen elements............................................
select-options:
s_kunnr for kna1-kunnr. " Customer Number 1
*" Type declarations...................................................
types:
begin of type_s_customer_details,
name like kna1-kunnr,
address like kna1-adrnr,
title like kna1-anred,
createdon like kna1-erdat,
createdby like kna1-ernam,
end of type_s_customer_details.
Internal table to hold General Data in Customer Master data *
data:
t_customer_details type table
of type_s_customer_details
with header line.
START-OF-SELECTION EVENT *
start-of-selection.
perform select.
*& Form select
This subroutine selects information from database and exports the *
data into presentation layer *
There are no interface parameters to be passed to this subroutine. *
form select .
select kunnr
adrnr
anred
erdat
ernam
into table t_customer_details
from kna1
where kunnr in s_kunnr.
if sy-subrc ne 0.
write : / 'DATABASE SELECTION FAILED'.
else.
call function 'GUI_DOWNLOAD'
exporting
BIN_FILESIZE =
filename = 'd:\customer_details.txt'
filetype = 'ASC'
APPEND = ' '
WRITE_FIELD_SEPARATOR = ' '
HEADER = '00'
TRUNC_TRAILING_BLANKS = ' '
WRITE_LF = 'X'
COL_SELECT = ' '
COL_SELECT_MASK = ' '
DAT_MODE = ' '
CONFIRM_OVERWRITE = ' '
NO_AUTH_CHECK = ' '
CODEPAGE = ' '
IGNORE_CERR = ABAP_TRUE
REPLACEMENT = '#'
WRITE_BOM = ' '
TRUNC_TRAILING_BLANKS_EOL = 'X'
IMPORTING
FILELENGTH =
tables
data_tab = t_customer_details
FIELDNAMES =
exceptions
file_write_error = 1
no_batch = 2
gui_refuse_filetransfer = 3
invalid_type = 4
no_authority = 5
unknown_error = 6
header_not_allowed = 7
separator_not_allowed = 8
filesize_not_allowed = 9
header_too_long = 10
dp_error_create = 11
dp_error_send = 12
dp_error_write = 13
unknown_dp_error = 14
access_denied = 15
dp_out_of_memory = 16
disk_full = 17
dp_timeout = 18
file_not_found = 19
dataprovider_exception = 20
control_flush_error = 21
others = 22
if sy-subrc <> 0.
write : / 'Upload Failed' , sy-subrc.
else.
write : / 'Upload Completed'.
endif.
endif.
endform. " SELECT -
Hello
I belive that you know faster way to import 100 movies with avi extenssion.
I'm usin Quick Time Pro to create *.mov files.
Do you know fastest way to do converssion.
I'm using *.mov files to play movies in Front Row later.
Thanx in advanceAlthough I don't run the newer iTunes I feel fairly confident in saying it won't play AVI and there aren't any plugins for that. In fact iTunes won't play multiple other formats such as FLAC (marginal plugin support to supposedly make this possible). They simply don't have motive for supporting it, and in some cases a specific motive for not supporting it.
I'm not up on the Lion issues. From mumblings on various discussions on ASC I'd say it's a new OS and wait for the dust to settle (that's why I like old, comfortable systems ).
I'd suggest just learning to play avi with another player, even though they don't have the database convenience of iTunes. Also check Songbird. I can't run it on my machine so I haven't done so, but it may have extended features. -
Hey guys,
I was wondering if there is a method of uploading an *.ASC or *.DAT file to convert into a 2-D boolean array.
For example, I would create an .asc or .dat file composed of strings using MATLAB to generate
1 1 0 1 1 0 1 1
0 1 0 0 1 0 0 1
1 0 0 1 0 0 1 0
and it would convert the string to a 2-D boolean array of
T T F T T F T T
F T F F T F F T
T F F T F F T F
so that I can ultimately use it to create a modified Digital waveform graph like this:
The purpose is because I will be using sample rates of 0.1 second intervals that spans to 2-5 minutes.
So to sum it up:
1. upload a *.ASC or *.DAT file with a 2-D array strings
2. convert the file to create a 2-D boolean array for use to create the digital waveform
Any help will be appreciated. I know it isn't much but I've uploaded the 2-D array to waveform *.VI for testing purposes.
Solved!
Go to Solution.
Attachments:
boolean_array.vi 14 KBsdkpark wrote:
However, when I tried that first, it doesn't know how to separate each column of the *.asc file
1 0 0 1 0 0
0 1 1 0 1 1
turns out just to read the first column
Please attach your VI instead of a meaningless picture.
Read from spreadsheet file will read all 2D data if used correctly. The defined delimiter is separating items, and linefeed separating rows. For example if you don't wire the delimiter, it will assume "tab" and only one value will get read per line if it is actually a space character. Try a delimiter of "space".
LabVIEW Champion . Do more with less code and in less time . -
Does we need to Create a file Before using Open dataSet
Hi Guys,
Can any body tell me whether we have to create a File before using Open dataset for writing files in Application Server.
Can anybody write a program for EKPO table to store it in application Server using OpendatasSet ?Is there any specific care we have to take for Executing pgm in Background?
I wrote the pgm for Foreground using GUI- Download.
PGM.
select * into table it_ekpo from ekpo .
CALL FUNCTION 'GUI_DOWNLOAD'
EXPORTING
filename ='c:\EKPO.xls'
filetype = 'ASC'
WRITE_FIELD_SEPARATOR = 'X'
TABLES
data_tab = it_ekpo
*fieldnames = l_heading
EXCEPTIONS
file_write_error = 1
no_batch = 2
gui_refuse_filetransfer = 3 .
Plzzzzzzzzz Make the changes for existing Pgm.any help is awarded with points.Its Urgent.
Thanks,
Gopi.Hi Guys,
Thanks for ur immediate response.I am sending the code just confirm me whether is correct r not?
DATA : wa_EKPO_file TYPE file_table-filename.
select * into table it_ekpo from ekpo .
OPEN DATASET wa_EKPO_file FOR OUTPUT "Write to appl. server
IN TEXT MODE
ENCODING DEFAULT. "Open dataset Return code
IF sy-subrc = 0.
LOOP at IT_EKPO into WA_EKPO.
TRANSFER wa_ekpo to wa_ekpo_file.
ENDLOOP.
ENDIF.
I want write the data into SPREAD Sheet .Can u guys tell me how to write into Spread Sheet using Open data Set.
Thanks,
Gopi. -
Error while creating control file
hi
i am getting following error while creating controll file
QL> shutdown
Database closed.
Database dismounted.
ORACLE instance shut down.
SQL> startup nomount
ORACLE instance started.
Total System Global Area 629145600 bytes
Fixed Size 1250548 bytes
Variable Size 171969292 bytes
Database Buffers 452984832 bytes
Redo Buffers 2940928 bytes
SQL> @c:\study\rose\c.sql
SP2-0042: unknown command "DATAFILE" - rest of line ignored.
SP2-0734: unknown command beginning "'C:\ORACLE..." - rest of line ignored.
SP2-0734: unknown command beginning "'C:\ORACLE..." - rest of line ignored.
SP2-0734: unknown command beginning "CHARACTER ..." - rest of line ignored.
SP2-0044: For a list of known commands enter HELP
and to leave enter EXIT.
1 CREATE CONTROLFILE SET DATABASE "ROSE" RESETLOGS froce logging NOARCHIVELOG
2 MAXLOGFILES 32
3 MAXLOGMEMBERS 2
4 MAXDATAFILES 32
5 MAXINSTANCES 16
6 MAXLOGHISTORY 1752
7 LOGFILE
8 GROUP 1 'C:\oracle\product\10.2.0\oradata\rose\LOG1ROSE.ORA' SIZE 50M,
9 GROUP 2 'C:\oracle\product\10.2.0\oradata\rose\LOG2ROSE.ORA' SIZE 50M,
10 GROUP 3 'C:\oracle\product\10.2.0\oradata\rose\LOG06.LOG' SIZE 25M,
11* GROUP 4 'C:\oracle\product\10.2.0\oradata\rose\LOG07.LOG' SIZE 25M
SQL>CHETAN YADAV wrote:
hi
i am getting following error while creating controll file
QL> shutdown
Database closed.
Database dismounted.
ORACLE instance shut down.
SQL> startup nomount
ORACLE instance started.
Total System Global Area 629145600 bytes
Fixed Size 1250548 bytes
Variable Size 171969292 bytes
Database Buffers 452984832 bytes
Redo Buffers 2940928 bytes
SQL> @c:\study\rose\c.sqlWe can't debug what we can't see. And what we can't see is the contents of "c:\study\rose\c.sql".
SP2-0042: unknown command "DATAFILE" - rest of line ignored.
SP2-0734: unknown command beginning "'C:\ORACLE..." - rest of line ignored.
SP2-0734: unknown command beginning "'C:\ORACLE..." - rest of line ignored.
SP2-0734: unknown command beginning "CHARACTER ..." - rest of line ignored.
SP2-0044: For a list of known commands enter HELP
and to leave enter EXIT.
1 CREATE CONTROLFILE SET DATABASE "ROSE" RESETLOGS froce logging NOARCHIVELOG
2 MAXLOGFILES 32
3 MAXLOGMEMBERS 2
4 MAXDATAFILES 32
5 MAXINSTANCES 16
6 MAXLOGHISTORY 1752
7 LOGFILE
8 GROUP 1 'C:\oracle\product\10.2.0\oradata\rose\LOG1ROSE.ORA' SIZE 50M,
9 GROUP 2 'C:\oracle\product\10.2.0\oradata\rose\LOG2ROSE.ORA' SIZE 50M,
10 GROUP 3 'C:\oracle\product\10.2.0\oradata\rose\LOG06.LOG' SIZE 25M,
11* GROUP 4 'C:\oracle\product\10.2.0\oradata\rose\LOG07.LOG' SIZE 25M
SQL> -
Hi All,Error while creating a file in EMIGALL
Hi All,
When am creating a File name in Data import screen.
The process which i had done is :
I had copied the Migration object DEVICE from std SAP to my company ZTEST and generated the report for this from menu option Migration object --> Generate Report . After that i had selected the option Data import from the same menu option .
In the Data import screen i had selected radibutton Batch Wrork porc and in the Import file tab i had given the file name as DEVICE.ZDE and pressed the create .When i pressed create the following message is appearing :
"Error Opening the file DEVICE.ZDE" .
if I see the detailed help it is showing the following message :
Error opening file DEVICE.ZDE
Message no. EM022
Diagnosis
File DEVICE.ZDE could not be opened.
Procedure
Check the file name and ensure that the file is not being used in another way.
pls provide me the solution for the above Issue ASAP.
regards,
BharatHi Bharat,
First of all make sure that Device file is of .txt with tab deliminated format, before uploading this file please close this file and try. Still if you are facing the same problem then let me know.
Regards,
Shailesh -
How to populate a table instaed of creating a file
Hello Everybody,
I have been thinking if any of you has ever done simmilar thing..
I have a crontab task that runs a script that gathers some space statistics each month from couple of servers..and sends an output to a file..
how to redirect that output so it populates certain table in the database?
can you recomend best approach?
thanks a lot,
agat81The easiest way would be to create your file in a way that it will look like
insert into your_table_name values (bla, 1,2 ,3);
insert into your_table_name values (blub, 4,5 ,6);
commit;
Then execute the script with sqlplus from cron.
cu
Andreas -
Can't create a file using fm 'File_Get_Name'
hi gurus,
Can you please help me with this issue. There's a program that have to create a file using the said fm. It was working before when it was set in OS NT. But when the settings and codes have been changed to UNIX, the program was able to generate the program. But the file doesn't exist. It seems it doesn't create a file in that server.
What else do I need to check?
Points will be rewarded. Thanks
Here's the code for your reference:
CALL FUNCTION 'FILE_GET_NAME'
EXPORTING
* CLIENT = SY-MANDT
logical_filename = 'Z_SYSBRIDGE'
OPERATING_SYSTEM = SY-OPSYS
* PARAMETER_1 = ' '
* PARAMETER_2 = ' '
* USE_PRESENTATION_SERVER = ' '
* WITH_FILE_EXTENSION = ' '
* USE_BUFFER = ' '
IMPORTING
* emergency_flag =
* file_format =
file_name = ltfile-out_path
EXCEPTIONS
file_not_found = 1
OTHERS = 2.Hi Maui,
Did you check SM69, where the code that ties to this FM creates a file after it execute your FM...
SM69 are os commands that does UNIX execution or other OS commands...
or maybe you have missed another FM like FM 'SXPG_OS_COMMAND' or of some sort.
Thanks
William Wilstroth -
Hi Experts,
I have created the logical path and filename in FILE tcode.I am trying to upload the pdf file to application server by using this path.But
I am getting message like "Unable to open the file".Even I cannot find the this path in AL11 tcode.Kindly anyone advise how to upload pdf file using
custom path and file created from FILE tcode.
Thanks & Regards,
Anusha.Hi Anusha,
Please give as below.
I forget to say you cannot open the PDF in AL11 and for that you need some configuration, i think it can be done using content server,not sure completely please wait for some more suggestions.
Regards,
Pavan -
We have a Java7 web app, which generate PDF report by calling Crystal Server 2013 SP4.
The app is being deployed on many different servers. We sometimes got the error below when generating report:
com.crystaldecisions.sdk.occa.report.lib.ReportSDKException: Can not create temp file---- Error code:-2147215357 [CRSDK00000615] Error code name:internal
at com.crystaldecisions.sdk.occa.report.application.PrintOutputController.controllerExportInternal(PrintOutputController.java:280)
at com.crystaldecisions.sdk.occa.report.application.PrintOutputController.export(PrintOutputController.java:152)
at com.crystaldecisions.sdk.occa.report.application.PrintOutputController.export(PrintOutputController.java:130)
at com.crystaldecisions.sdk.occa.report.application.PrintOutputController.export(PrintOutputController.java:113)
Problem is, this seems to be a pretty generic exception. It could be caused by many different reasons.
e.g. network connection problem, wrong DB login, wrong folder path, lack of folder access right, etc.
Each time we could only guess what's wrong.
We are running into it again, and this time everything seems correctly configured so far.
We wonder if there are more info we can get to troubleshoot? For example, any log file of Crystal Server we should look into? Or does Crystal Server has debug mode which prints more details to tell us what goes wrong?Prithviraj Shekhawat wrote:
Hi Henry,
I believe you are using RAS SDKs to export the reports to PDF.
Apply trace on RAS server and check what you find in RAS logs.
Check whether you can see timeout error is RAS logs. Usually if connection is lost and the RAS server no more have the session to write to the temp directory, we do see these errors.
Also, does the account that runs RAS have permissions to create a file in RAS's default temp directory? Are you getting any out of memory or out of disk space exceptions on App server or RAS, tracing RAS server is the way to move forward.
Thanks,
Prithvi
>>I believe you are using RAS SDKs to export the reports to PDF.
Yes
>>Apply trace on RAS server and check what you find in RAS logs.
>>Check whether you can see timeout error is RAS logs.
How to configure tracing, and where are RAS logs? Is it configured in CMC --> Servers --> Crystal Report Services?
>>Also, does the account that runs RAS have permissions to create
>>a file in RAS's default temp directory?
Pretty sure yes.
>> Are you getting any out of memory or out of disk space exceptions
>>on App server or RAS, tracing RAS server is the way to move forward.
Not on App server.
For RAS, that's the problem, I am not sure where to look....... -
Hello,
While exporting Export reporting from BI4 getting exception
Can not create temp file---- Error code:-2147215357 [CRSDK00000615] Error code name:internal
In Trace Log I am getting
com.crystaldecisions.xml.serialization.XMLWriter||Failed to create an object instance for CrystalReports.TextObjectFormat
java.util.MissingResourceException: Can't find resource for bundle java.util.PropertyResourceBundle, key CrystalReports.TextObjectFormat
at java.util.ResourceBundle.getObject(ResourceBundle.java:374)
at java.util.ResourceBundle.getString(ResourceBundle.java:334)
I tried following solution according to the all forums but still issue exist.
Done changes mention in KB article In <Installation-dir-of-BO>\Common\4.0\java\CRConfig.XML we have to increase the JAVA heap MIN and Max size
<JVMMaxHeap>64000000</JVMMaxHeap> <JVMMinHeap>32000000</JVMMinHeap>
Increase the value in the ReportApplicationServer Services in the CMC for "Number of database records to read when previewing or refreshing a report". The value -1 is for unlimited records but not recommended for performance.
Check for temporary read write permission on server
Using SDK library from C:\Program Files (x86)\SAP Business Objects\SAP BusinessObjects Enterprise XI 4.0\java\lib
Can you please let me know is there anything missing.Hi,
We face the same problem with some BI4 reports.
The same report works well with the "Crystal Reports Viewers API", as used in Infoview, but not with the "Report Application Server (RAS) API".
This error appears after some time working on a report. If we reproduce the same report, but from zero, no problem.
Hope it can help.
Ludovic. -
After upgrade to CF9, CFIMAGE "Unable to create temporary file" error
We recently upgraded from CF8 to CF9 Enterprise. I'm getting an "Unable to create temporary file" error on
my CFIMAGE resize calls. We use sandbox security. I assume I need to grant write access to whatever folder CF uses for temp files, but which folder is it? The same code (and sandbox settings) ran fine in CF8....
Note, if I attempt to add C:\JRun4\servers\cfusion\SERVER-INF\temp to the sandbox for this particular app, CF crashes on all requests across all apps on the server with a:
Security: The requested template has been denied access to C:\JRun4\servers\cfusion\cfusion-ear\cfusion-war\WEB-INF\cfclasses\cfapp2ecfc1510154633.c lass.
The following is the internal exception message: access denied (java.io.FilePermission C:\JRun4\servers\cfusion\cfusion-ear\cfusion-war\WEB-INF\cfclasses\cfapp2ecfc1510154633.c lass read)
ColdFusion cannot determine the line of the template that caused this error. This is often caused by an error in the exception handling subsystem.
I need to restart CF to get everything working again.Another update. Had a problem with a sandboxed CF9 site doing a simple CFIMAGE READ to a memory variable. Got an "Unable to create temporary file" error.
Inserted the following code in the file upload page:
<cfscript>
writeoutput("Temp Dir : " & createobject("java","java.lang.System").getProperty("java.io.tmpdir") );
</cfscript>
... and it reveals the temp directory as C:\WINDOWS\TEMP. Added that to the sandbox, and the CFIMAGE READ is working properly now.
Note this seems inconsistent with CFIMAGE RESIZE behavior which appears to use the CF GetTempDirectory() value, which in my case is C:\JRun4\servers\cfusion\SERVER-INF\temp\cfusion-war-tmp\
For reference, see the section "Sandbox Considerations" at this link:
http://help.adobe.com/en_US/ColdFusion/9.0/Admin/WSc3ff6d0ea77859461172e0811cbf364104-7fc8 .html#WSc3ff6d0ea77859461172e0811cbf364104-7fcc
Maybe you are looking for
-
Lanier Ricoh Printer - still can't get it to work with Snow Leopard
Does anybody know what this is and how to fix this: Error: /Library/Printer/RICOH/Filters/jobLogFilterC failed I get this in the "open print que" dialog box. JK
-
Hi, I am using a programmatic view object in adf query component and have created List of values for one attribute by adding another programmatic ViewObject as ViewAccessor. In the Ui hints of that attribute i made list type as Combo Box. To populate
-
I bought the Zen Xtra 40gb this morning. Charged the battery before going to work. When I came home I installed the new software and began transferring songs from my computer to it. I was taking my time, looking up album titles and release dates onli
-
QuickVoice not sync very large file
I have a registered copy of QuickVoice installed on my iPad, running iOS 5.1.1 I also have a 300Mb conversation on it that i need to save on my PC. I'm tyring to use QuickVoice Sync, version 1.4.0.108 to import it, but no chance. It imports about 18
-
hi.. I have a query which groups the result output to show all the songs contained on a specific album....I am also showing the amount of comments each song has by using COUNT in the select section of the query... thus..my code is <!---count number o