Exporting Data Sets as Files in CS5
Why would CS5 crash every time I try to export Data Sets as files? I have been just doing it in CS2 because of the problem. However, CS2 is acting up for some reason at the moment.
If CS2 where working, as it has in the past, then the exact same sets would export easily from there but not CS5. Is there any way to fix this problem?
Hello,
Yes I am running the latest version, on a mac. The Data Set is moderately sized, about 30 sets with 5 perameters (sorry if that is not exactly what they are usually called). It crashes while the data set is processing. After it saves a couple of files the system crashes. Sometimes it makes it a bit further, but never all the way through a whole set. CS2 is having all sorts of problems for me all of the sudden. I am going to look for my disk to unintstall then reinstall. It can't open files from File/Open and crashes within minutes of opening, even if I'm not doing anything with it yet. The only reason I have it is to run the Data Sets so I just hope I can find my install disk.
Thanks for any help!
Similar Messages
-
Why would only the first line of my data set txt file work?
Hi -
I had a lot of success using variables and external data sets until today.
I have an external text file that I have imported as a data set (Image/Variables/Data Sets/Import...). All of the variables have been defined and confirmed (at least PSD hasn't told me it can't find something which is the typical error msg.)
This external text file, with the extension ".txt" has 12 lines on it, each line is 7 comma separated values, and each line is ending in a carriage return.
YESTERDAY when I used File/Export/Export Data Set as Files... the procedure went beautifully for the 8 times I used it. TODAY I only get the first of the 12 lines completed and then the export stops. There are no error messages or other signs that Photoshop has choked on something so I guess something is wrong with my text file... BUT WHAT??
Any insight on any step in this would be helpful. You all know that if I'm using this feature it's because I have TONS of repetition ahead of me if it doesn't work.
TIA your expertise,
JLFixed it!
When Exporting as Data sets as files... the step I missed was to select "All Data Sets" from the Data Set drop down.
Thanks all.
JL -
Export Data Sets as jpgs?
Is there a way to export data sets as jpgs instead of psd? The whole point is fast file creation and having a folder full of new psds which I then have to convert to jpg is kinda a silly step. Am I missing something?
I think because of the way variables work (at least the data set part), they need layers
( files that are not flattened) and jpegs don't support layers.
http://help.adobe.com/en_US/photoshop/cs/using/WSfd1234e1c4b69f30ea53e41001031ab64-7417a.h tml
If your intention is saving different variations of your opened
file, you could use layer comps.
http://help.adobe.com/en_US/photoshop/cs/using/WSfd1234e1c4b69f30ea53e41001031ab64-7870a.h tml
Then use export layer comps to files under the scripts menu.
MTSTUNER -
Data convertion while exporting data into flat files using export wizard in ssis
Hi ,
while exporting data to flat file through export wizard the source table is having NVARCHAR types.
could you please help me on how to do the data convertion while using the export wizard?
Thanks.Hi Avs sai,
By default, the columns in the destination flat file will be non-Unicode columns, e.g. the data type of the columns will be DT_STR. If you want to keep the original DT_WSTR data type of the input column when outputting to the destination file, you can check
the Unicode option on the “Choose a Destination” page of the SQL Server Import and Export Wizard. Then, on the “Configure Flat File Destination” page, you can click the Edit Mappings…“ button to check the data types. Please see the screenshot:
Regards,
Mike Yin
TechNet Community Support -
Do tree have the standard functoin to export data to local file ?
Hi:
do tree have the standard functoin to export data to local file? you know ALV have the standard button to do it.
thanksss.
qimingxing.I don't think there is a method built into the tree object for doing this.
[SAP Tree and Tree Model|http://help.sap.com/saphelp_47x200/helpdata/EN/b7/147a36c70d2354e10000009b38f839/frameset.htm]
I think one way you could do it is have an option on the application menu, then manually parse the data in the tree and build up an itab yourself from the expanded nodes (or all nodes or whatever). Then you could export the data from the itab. -
PSD files created using export data set fail to import into lightroom
If I create a set of files using variables in a data set, the PSD files won't import into LightRoom. LR says to resave with maximum compatibility, but I already have that set in Photoshop. If I open one of the files and resave it, it will import. Perhaps PS isn't honoring the maximize compatibility setting when exporting.
Hi,
I downloaded 10g database ver 10.2.0.1.0 from oracle site and installed it on my laptop. I took an export of schema which was on my 9i database ver 9.2.0.1.0 using 9i exp, created tablespace and user in the 10gdb and tried to import the same to 10gdb using 10g imp using the following.
imp system/pswd@10gdb fromuser=test touser=test file=expdat.dmp log=expdat.log
it displays
.importing SYSTEM'S objects into SYSTEM
.importing TEST'S objects into TEST
and it doesnt import any objects just hangs. The Log file does'nt have any entries.
Can anyone help me.
Thanks in advance
Smdas -
Export data in Excel file - Debug and Break Point
In the program RFUMSV00 the data been displayed on the screen with the function REUSE_ALV_LIST_DISPLAY.
With "Cntrl + Shift + F9" I exported the list of data in an Excel file.
How can I see, with Debug, where the program RFUMSV00 passed the data to Excel File? I can indicate the point, In the program, where I need to set the break point?
Thanks,
SerenaHi,
This download functionality has nothing to have with program RFUMSV00. It is actually processed by REUSE_ALV_LIST_DISPLAY fm, which calls fm LIST_COMMAND which finally calls fm LIST_DOWNLOAD, where you will actually find the downloading part (in fact in another fm, DOWNLOAD_LIST)...
to resume: REUSE_ALV_LIST_DISPLAY->LIST_COMMAND->LIST_DOWNLOAD->DOWNLOAD_LIST
so I would put the break-point in the last one..
Kr,
Manu.
correction: I made a mistake, the break-point should be set in LIST_DOWNLOAD...where you will find the call to fm LIST_CONVERT_TO_DAT which is responsible of the download...
Edited by: Manu D'Haeyer on Dec 9, 2011 1:46 PM -
Export data to flat file with no delimiter
Hi I've 3 columns in a view that i want to export to a flat file. I don't want the flat file to contain any delimiter such as commas , tabs etc..
I am using fixed width with the following setting
Header row delimiter {CR}-{LF}
Advance Options :
InputColumnwith 125
InputColumnwith 187
InputColumnwith 7
When i preview that data it looks correct , divided up into 3 columns
However when the data is exported to the flat file i get just one long string in the flat file on the first row.
What do i need to do to get the end of line characters to be identified
Thanks In advanceColumn delimiter is here
Otherwise header row terminates a file line
Arthur
MyBlog
Twitter -
Please can you help an Oracle newcomer?
Below is a script (which I took from the forums) that I used to
run in Lite to export data to a csv file.
As you can see I am having problems with running the same file
in 8i - It starts off OK i.e. asking for the name of the table
but then, instead of completing the full script it executes a
few lines then keeps asking me for the name of the table. I
suspect there is something wrng in my environment settings
(Comments ON etc.) but I have checked everything with no success.
Any help would be much appreciated as this is a really useful
script which I use the whole time.
Thanks very much for your help.
Regards
Andrew
SQL>
1 SET ECHO OFF
2 SET FEEDBACK OFF
3 SET HEADING OFF
4 SET PAGESIZE 0
5 SET TIMING OFF
6 SET VERIFY OFF
7 ACCEPT name_of_table PROMPT 'Enter the name of the table
you wish to convert: '
8 SPOOL query.sql
9 SELECT 'SPOOL ' || UPPER ('&name_of_table') || '.txt'
10 FROM DUAL;
11 SELECT 'SELECT ' || column_name
12 FROM all_tab_columns
13 WHERE table_name = UPPER ('&name_of_table')
14 AND column_id = 1;
15 SELECT '|| '','' || ' || column_name
16 FROM all_tab_columns
17 WHERE table_name = UPPER ('&name_of_table')
18 AND column_id > 1;
19 SELECT 'FROM ' || UPPER ('&name_of_table') || ';'
20 FROM DUAL;
21 SELECT 'SPOOL OFF'
22 FROM DUAL;
23 SPOOL OFF
24* START query
25 /
Enter value for name_of_table: new_table
old 9: SELECT 'SPOOL ' || UPPER ('&name_of_table') || '.txt'
new 9: SELECT 'SPOOL ' || UPPER ('new_table') || '.txt'
Enter value for name_of_table: new_table
old 13: WHERE table_name = UPPER ('&name_of_table')
new 13: WHERE table_name = UPPER ('new_table')
Enter value for name_of_table: new_table
old 17: WHERE table_name = UPPER ('&name_of_table')
new 17: WHERE table_name = UPPER ('new_table')
Enter value for name_of_table: New_table
old 19: SELECT 'FROM ' || UPPER ('&name_of_table') || ';'
new 19: SELECT 'FROM ' || UPPER ('New_table') || ';'
SET ECHO OFF
ERROR at line 1:
ORA-00922: missing or invalid optionThanks for your help - problem solved I was using Run sql file
instead of Start sql file - oops! -
Error exporting data to excel file
Hello,
I have written a macro to export some channels into an excel file, skipping the excel wizard by using the following code:
EXCELChnCount = intChannels - 1
For i = 1 To intChannels
ExcelExpChn(i) = ChannelList(i - 1)
Next
Call EXCELExport ("c:\test.xls","data",0,"")
No file is created, but when I output EXCELStat / EXCELStatTex it contains the error code 100 "a general error occured".
The strange thing is, if I run the wizard once (by changing the 0 to a 1), and just press "finish", the wizard-less export works flawlessly afterwards.
Has anybody an idea what is wrong? Do I have so set some more variables in order to make it work without using the wizard?
Using a STP configuration file, as I've read in some other postings isn't an option, as the name and the numbers of the exported channels change constantly.
Thanks for your help, and best regards!
SamHi Sam,
I did not try your script out, but I often receive the mysterious "error 100" when Excel already has the file open - Excel is very protective of its open files. Sometimes Excel will crash too, but checking your Task Manager will reveal it is still running...
Julia -
Hi!
I use this process in apex to export data from table into txt files with fixed length, so without any delimeter
>
declare
v_file_name VARCHAR2 (2000) := 'test.txt';
id varchar2(9);
worker varchar2(30);
address varchar2(26);
begin
OWA_UTIL.mime_header ('application/txt', FALSE);
htp.p('Content-Disposition:attachment;filename="'|| v_file_name|| '"');
OWA_UTIL.http_header_close;
FOR x in (select id id from workers where col00 like '1000')
LOOP
select col01,col02,col03 into id, worker, addressfrom un_web_prenosi where id = x.id;
htp.p(id||worker||address);
END LOOP;
apex_application.g_unrecoverable_error:=true;
exception when others then
null;
end;
and I have problem, because if I open file with notepad is everything in one line, but if I open file in notepad++ or I copy content of file in word then I see contents just like it should be (each record in one line). Do you know how can I solve this problem?I solved my problem. I forget to put chr(13) into htp.p(id||worker||address); so this line must be like htp.p(id||worker||address||chr(13));
-
SSIS 2008 R2 - Export data to Flat File in another server
Hello Everybody,
I'm trying to export data from a table in database server to flat file in another server, however it is happening the error Access Denied. I'm using SQL Server Integration Service 2008 R2 to do this.
I've checked all the ways that's happening could the level of security and could not resolve.
Please could someone tell me what I'm missing in this case?
Following error log:
SSIS package "AtualizarDados.dtsx" starting.
Information: 0x4004300A at Gerar arquivo, SSIS.Pipeline: Validation phase is beginning.
Information: 0x40043006 at Gerar arquivo, SSIS.Pipeline: Prepare for Execute phase is beginning.
Information: 0x40043007 at Gerar arquivo, SSIS.Pipeline: Pre-Execute phase is beginning.
Information: 0x402090DC at Gerar arquivo, Geração de Arquivo [63]: The processing of file "\\targetserver\Export_File\Export_File.txt" has started.
Warning: 0x80070005 at Gerar arquivo, Geração de Arquivo [63]: Access is denied.
Error: 0xC020200E at Gerar arquivo, Geração de Arquivo [63]: Cannot open the datafile "\\targetserver\Export_File\Export_File.txt".
Error: 0xC004701A at Gerar arquivo, SSIS.Pipeline: component "Geração de Arquivo" (63) failed the pre-execute phase and returned error code 0xC020200E.
Information: 0x40043008 at Gerar arquivo, SSIS.Pipeline: Post Execute phase is beginning.
Information: 0x402090DD at Gerar arquivo para DMZ, Geração de Arquivo [63]: The processing of file "\\targetserver\Export_File\Export_File.txt" has ended.
Information: 0x4004300B at Gerar arquivo, SSIS.Pipeline: "component "Geração de Arquivo" (63)" wrote 0 rows.
Information: 0x40043009 at Gerar arquivo, SSIS.Pipeline: Cleanup phase is beginning.
Task failed: Gerar arquivo
SSIS package "AtualizarDados.dtsx" finished: Success.
Regards,
Antonio EstimaI got after using domain user.
Thanks to all -
Hi,
Is it possible to export data from any database to flat files using SQL developer and also automate the process by including some sort of scheduler or script?
Thanks,
NiteshIf the database is Oracle you can export the contents of table to a flat file by right clicking on the table instance and selecting "Export Data" menu item and then selecting the export format
-
I am curious what the "best practice" is for exporting data programmaticly from SQL Server to Excel. Is it best to do it straight from SQL Server, or should I do it with in my C# code? My program is going to pull the data, put in the
excel file, then email the file. So I could write an SP that gets the data and puts it in the file, then have the C# code run the SP and email the file; Or I could have the code do everything, pull the data, export it & email it.
If it is considered better to have the SP do it, why and what is the best way? ROWSET functions?So I could write an SP that gets the data and puts it in the file, then have the C# code run the SP and email the file; Or I could have the code do everything, pull the data, export it & email it.
A very important thing to consider is where the Excel file should reside who should do the mailing, the client or the server?
I would definitely recommend having a C# program to get the data and write to the Excel book. Writing to Excel books from SQL Server is possible, but there is a lot more problems with permissions, OLE DB providers etc. Plus, neither writing to Excel books
nor sending mail is part of the core business for SQL Server which is to work with data.
Erland Sommarskog, SQL Server MVP, [email protected] -
Help to export data into a file
Hi,
I am having more than 200 columns in a table. Client wants to export the data into a file with all 215 columns data. When i write the select * from tablename into a spool file. It is getting the data into a multiple lines however client wants each record into a single line.(right now records are getting into multiple lines). I tried to use to_nclob(columnname1)....to_nclob(column215), this way it is getting a single line for each record but it is taking much time(means in a table we have 10M records and explain plan is showing 3 days to export the file). Could you please help me how we can achieve these type of functionalities.
Thanks in advanceuser586 wrote:
Hi,
I am having more than 200 columns in a table. Client wants to export the data into a file with all 215 columns data. When i write the select * from tablename into a spool file. It is getting the data into a multiple lines however client wants each record into a single line.(right now records are getting into multiple lines). I tried to use to_nclob(columnname1)....to_nclob(column215), this way it is getting a single line for each record but it is taking much time(means in a table we have 10M records and explain plan is showing 3 days to export the file). Could you please help me how we can achieve these type of functionalities.
Thanks in advance
Hardly surprising it's taking ages to export 10 million rows, if you're doing it through SQL*Plus, as that involves transporting all the data over the network to the client, which is then rendering all that data in the display (which can be slow to scroll, depending on the size of the window) etc.
Better to get the database to access the file system directly, using UTL_FILE (though this does mean that the file is produced on the server) and then transfer the resultant file to where it needs to go.
Example of a generic template to use as a starting point...
As sys user:
CREATE OR REPLACE DIRECTORY TEST_DIR AS '\tmp\myfiles'
GRANT READ, WRITE ON DIRECTORY TEST_DIR TO myuser
As myuser:
CREATE OR REPLACE PROCEDURE run_query(p_sql IN VARCHAR2
,p_dir IN VARCHAR2
,p_header_file IN VARCHAR2
,p_data_file IN VARCHAR2 := NULL) IS
v_finaltxt VARCHAR2(4000);
v_v_val VARCHAR2(4000);
v_n_val NUMBER;
v_d_val DATE;
v_ret NUMBER;
c NUMBER;
d NUMBER;
col_cnt INTEGER;
f BOOLEAN;
rec_tab DBMS_SQL.DESC_TAB;
col_num NUMBER;
v_fh UTL_FILE.FILE_TYPE;
v_samefile BOOLEAN := (NVL(p_data_file,p_header_file) = p_header_file);
BEGIN
c := DBMS_SQL.OPEN_CURSOR;
DBMS_SQL.PARSE(c, p_sql, DBMS_SQL.NATIVE);
d := DBMS_SQL.EXECUTE(c);
DBMS_SQL.DESCRIBE_COLUMNS(c, col_cnt, rec_tab);
FOR j in 1..col_cnt
LOOP
CASE rec_tab(j).col_type
WHEN 1 THEN DBMS_SQL.DEFINE_COLUMN(c,j,v_v_val,2000);
WHEN 2 THEN DBMS_SQL.DEFINE_COLUMN(c,j,v_n_val);
WHEN 12 THEN DBMS_SQL.DEFINE_COLUMN(c,j,v_d_val);
ELSE
DBMS_SQL.DEFINE_COLUMN(c,j,v_v_val,2000);
END CASE;
END LOOP;
-- This part outputs the HEADER
v_fh := UTL_FILE.FOPEN(upper(p_dir),p_header_file,'w',32767);
FOR j in 1..col_cnt
LOOP
v_finaltxt := ltrim(v_finaltxt||','||lower(rec_tab(j).col_name),',');
END LOOP;
-- DBMS_OUTPUT.PUT_LINE(v_finaltxt);
UTL_FILE.PUT_LINE(v_fh, v_finaltxt);
IF NOT v_samefile THEN
UTL_FILE.FCLOSE(v_fh);
END IF;
-- This part outputs the DATA
IF NOT v_samefile THEN
v_fh := UTL_FILE.FOPEN(upper(p_dir),p_data_file,'w',32767);
END IF;
LOOP
v_ret := DBMS_SQL.FETCH_ROWS(c);
EXIT WHEN v_ret = 0;
v_finaltxt := NULL;
FOR j in 1..col_cnt
LOOP
CASE rec_tab(j).col_type
WHEN 1 THEN DBMS_SQL.COLUMN_VALUE(c,j,v_v_val);
v_finaltxt := ltrim(v_finaltxt||',"'||v_v_val||'"',',');
WHEN 2 THEN DBMS_SQL.COLUMN_VALUE(c,j,v_n_val);
v_finaltxt := ltrim(v_finaltxt||','||v_n_val,',');
WHEN 12 THEN DBMS_SQL.COLUMN_VALUE(c,j,v_d_val);
v_finaltxt := ltrim(v_finaltxt||','||to_char(v_d_val,'DD/MM/YYYY HH24:MI:SS'),',');
ELSE
DBMS_SQL.COLUMN_VALUE(c,j,v_v_val);
v_finaltxt := ltrim(v_finaltxt||',"'||v_v_val||'"',',');
END CASE;
END LOOP;
-- DBMS_OUTPUT.PUT_LINE(v_finaltxt);
UTL_FILE.PUT_LINE(v_fh, v_finaltxt);
END LOOP;
UTL_FILE.FCLOSE(v_fh);
DBMS_SQL.CLOSE_CURSOR(c);
END;
This allows for the header row and the data to be written to seperate files if required.
e.g.
SQL> exec run_query('select * from emp','TEST_DIR','output.csv');
PL/SQL procedure successfully completed.
Output.csv file contains:
empno,ename,job,mgr,hiredate,sal,comm,deptno
7369,"SMITH","CLERK",7902,17/12/1980 00:00:00,800,,20
7499,"ALLEN","SALESMAN",7698,20/02/1981 00:00:00,1600,300,30
7521,"WARD","SALESMAN",7698,22/02/1981 00:00:00,1250,500,30
7566,"JONES","MANAGER",7839,02/04/1981 00:00:00,2975,,20
7654,"MARTIN","SALESMAN",7698,28/09/1981 00:00:00,1250,1400,30
7698,"BLAKE","MANAGER",7839,01/05/1981 00:00:00,2850,,30
7782,"CLARK","MANAGER",7839,09/06/1981 00:00:00,2450,,10
7788,"SCOTT","ANALYST",7566,19/04/1987 00:00:00,3000,,20
7839,"KING","PRESIDENT",,17/11/1981 00:00:00,5000,,10
7844,"TURNER","SALESMAN",7698,08/09/1981 00:00:00,1500,0,30
7876,"ADAMS","CLERK",7788,23/05/1987 00:00:00,1100,,20
7900,"JAMES","CLERK",7698,03/12/1981 00:00:00,950,,30
7902,"FORD","ANALYST",7566,03/12/1981 00:00:00,3000,,20
7934,"MILLER","CLERK",7782,23/01/1982 00:00:00,1300,,10
The procedure allows for the header and data to go to seperate files if required. Just specifying the "header" filename will put the header and data in the one file.
Adapt to output different datatypes and styles are required.
Maybe you are looking for
-
Key Figure Display in Interactive Planning
Hello, I am unable to display some of the key figures in SNP Interactive Planning. All these Key Figures are present in Planning book and are also included in the data view. Is there any setting wherein I can control the display of Key figure althou
-
Dear Gurus I am trying to update RG1 register through T-code J1I5 for movement type 921. Table J_1RG1 get updated for this transaction. But when i use T-code J2I5 for Excise Register Extraction entry does not reflect in table J_2RG1BAL hence opening
-
NULLABLE column is not updated after the NOT NULL constraint definition...
Hi, SQL> select column_name,nullable from all_tab_columns where table_name='EMP'; COLUMN_NAME NULLABLE EMPNO N ENAME Y JOB Y MGR
-
Is Acrobat X Pro suitable for publishing an interactive book (as a PDF)?
I am evaluating Acrobat Pro X as a possible vehicle for publishing an interactive reference book (a numismatic catalog). The Bookmark capability of Acrobat is particularly attractive because the Bookmark panel functions as a very convenient and intu
-
Hello: every time I have been on the internet lately, I have been getting bombarded with pop-ups from a couple of sites, but most of them come from ConvertFilesForFree, prompting me to connect to their site for some such reason. I'm not certain wheth