Append the file and print the output in a single file in column manner
Hi All,
I have 2 files in UNIX.
File1.txt
NAME SAL
Albert $4567
Monali $7892
Raj $8521
File2.txt
DOB
12-JUL-1986
5-Aug-1978
13-MAR-1958
so i apped both the file
cat file1.txt file2.txt>>file3.txt
The output of file3.txt was:
NAME SAL
Albert $4567
Monali $7892
Raj $8521
DOB
12-JUL-1986
5-Aug-1978
13-MAR-1958
But i need the output below
NAME SAL DOB
Albert $4567 12-JUL-1986
Monali $7892 5-Aug-1978
Raj $8521 13-MAR-1958
Could you please help me to resolve
Edited by: user10069916 on Sep 6, 2012 12:07 AM
$ man paste
$ cat file1.txt
NAME SAL
Albert $4567
Monali $7892
Raj $8521
$ cat file2.txt
DOB
12-JUL-1986
5-Aug-1978
13-MAR-1958
$ paste file1.txt file2.txt >file3.txt
$ cat file3.txt
NAME SAL DOB
Albert $4567 12-JUL-1986
Monali $7892 5-Aug-1978
Raj $8521 13-MAR-1958
$
Similar Messages
-
How to download the output of a report along with column header
Hi,
Could someone please tell me on how to download the output of a report along with column header to .txt format. A download option needs to be given to the user using physical and logical file names .The report basically contains header details and item details and requirement is to download the same format into an .txt format.Hello,
Try this FM:
Data: being of itab occurs 0,
matnr like mara-matnr,
maktx like makt-maktx,
end of itab.
data:begin of fld_tab occurs 0,
fld_name(20),
end of fld_tab.
fld_tab = 'Material'.
append fld_tab.
fld_tab = 'Material Desc'.
append fld_tab.
CALL FUNCTION 'WS_DOWNLOAD'
EXPORTING
BIN_FILESIZE = ' '
CODEPAGE = ' '
FILENAME = 'C:\1.txt '
FILETYPE = 'DAT'
MODE = ' '
WK1_N_FORMAT = ' '
WK1_N_SIZE = ' '
WK1_T_FORMAT = ' '
WK1_T_SIZE = ' '
COL_SELECT = ' '
COL_SELECTMASK = ' '
NO_AUTH_CHECK = ' '
IMPORTING
FILELENGTH =
TABLES
DATA_TAB = itab
FIELDNAMES = fld_tab
EXCEPTIONS
FILE_OPEN_ERROR = 1
FILE_WRITE_ERROR = 2
INVALID_FILESIZE = 3
INVALID_TYPE = 4
NO_BATCH = 5
UNKNOWN_ERROR = 6
INVALID_TABLE_WIDTH = 7
GUI_REFUSE_FILETRANSFER = 8
CUSTOMER_ERROR = 9
OTHERS = 10
IF SY-SUBRC <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
Regards,
Naimesh -
Merging Smartform Output and Adobe Form Output in a single PDF File
Hi All,
My Requirement is as follows -
I have multiple Smartforms and a single Adobe Form.
I want to merge the Smartform Outputs and Adobe Form output in a single PDF.
I am able to merge multiple Smartform Output in a PDF , but not able to find any way to merge smartform and adobe form output as the Smartform output is in OTF Format and Adobe form output is in PDF Format itself.
I have tried few ways , but could not find any success.
Request you all to give me some direction to this problem.
Thanks & Regards
BhavikaKumar,
I am afraid this is not possible using SAP functionality. There are probably 3rd party tools which allow you to merge several PDFs into one, but SAP itself does not offer such a mechanism. There is an internal SAP function, though, which can merge several "parts" (=several PDFs) within an Adobe-created spool request into a single PDF, intended for downloading this PDF from SP01.
This is described in note 1717357.
Best regards,
Alexander -
Difference between execution mode of Print preview and Print for Output
Hello,
Can anybody tell the difference between execution mode of print preview and print for an output (For eg. PO output or Invoice)?. I am trying to download some documents linked to Purchase order to desktop. The code is written in the same driver program for printing PO and it is executed after smartform function module is called. It works fine in print preview mode and it fails in print mode. The reason why download fails in print mode is that GUI not available (just found from debugging).
Any ideas?
Thanks
AnilHI
try using any other printer and find out if you are getting the correct output. The printer needs to support Multiple Unicode encoding schemes like UTF 8, UTF 16BE, and UTF 16LE, plus special characters and logos, bi-directional text layout, and custom characters.. -
How to get the output of a single command from multiple servers using power shell
Hi All,
I have a requirement in my project, wherein I have to find the database list on each server which has autoshrink option is enabled.
Below is the query which I'm using and I want to automate it in such a way that, I can give the input to powershell script with list of all servers and I need output in csv format which should be giving the database names for which autoshrink option is enabled.
select name from sys.databases where
is_auto_shrink_on=1
Thanks in Advance, Kranthiforeach($instance in $instances){
Invoke-SqlCmd $query -ServerInstance $instance
https://msdn.microsoft.com/en-us/library/cc281720.aspx
¯\_(ツ)_/¯ -
How to modify the query to get the output in a single row
Hi All,
Below is the query i have written it works fine
select DISTINCT right(left(CTACCT,13),4) AS LocationNum,
tODS_GLBalance.FiscalYearId AS FiscalYearId,
tODS_GLBalance.FiscalMonthOfYearId AS FiscalMonthOfYearId,
--tods_GLMetadata.Metric,
Case when
tods_GLMetadata.Metric = 'Gross Margin'
Then SUM(Balance)
Else 0
END AS GrossMargin,
Case when
tods_GLMetadata.Metric = 'Occupancy'
Then SUM(Balance)
Else 0
END AS Occupancy,
Case when
tods_GLMetadata.Metric = 'Payroll Dollars'
Then SUM(Balance)
Else 0
END AS Payroll,
Case when
tods_GLMetadata.Metric = 'CF Sales'
Then SUM(Balance)
Else 0
END AS OperatingSales,
Case when
tods_GLMetadata.Metric = 'Operations'
Then SUM(Balance)
Else 0
END AS OperatingExpenses
-- 0 as payroll
from ods.[JJill].[tODS_GLBalance]
inner join ods.Staging.tODS_INF_GLPCT ON tODS_GLBalance.PageNum = tODS_INF_GLPCT.CTPAGE
inner join ods.JJill.tods_GLMetadata ON tods_GLMetadata.AcctDescription = tODS_INF_GLPCT.CTDESC
where
(tODS_GLBalance.FiscalYearId = 2012) and
(tODS_GLBalance.FiscalMonthOfYearId = 2) and
(right(left(CTACCT,13),4)= 3020)
group by
right(left(CTACCT,13),4),
tODS_GLBalance.FiscalYearId,
tODS_GLBalance.FiscalMonthOfYearId,
tods_GLMetadata.Metric
This is the sample output,
LocationNum FiscalYearId FiscalMonthOfYearId GrossMargin Occupancy Payroll OperatingSales OperatingExpenses
3020 2012 2 -112477.00 0.00 0.00 0.00 0.00
3020 2012 2 0.00 0.00 0.00 -158288.94 0.00
3020 2012 2 0.00 0.00 0.00 0.00 5625.44
3020 2012 2 0.00 0.00 24185.79 0.00 0.00
3020 2012 2 0.00 31075.53 0.00 0.00 0.00
But, i am expecting the output to be something like this
LocationNum FiscalYearId FiscalMonthOfYearId GrossMargin Occupancy Payroll OperatingSales OperatingExpenses
3020 2012 2 -112477.00 31075.53 24185.79 -158288.94 5625.44
Can someone please help me with changing my query to get the desired output?
Please let me know if you have any questions.
ThanksTry this:
SELECT DISTINCT
RIGHT(LEFT(CTACCT,13),4) AS LocationNum, tODS_GLBalance.FiscalYearId AS FiscalYearId, tODS_GLBalance.FiscalMonthOfYearId AS FiscalMonthOfYearId,
SUM(CASE WHEN tods_GLMetadata.Metric = 'Gross Margin' THEN Balance ELSE 0 END ) AS GrossMargin,
SUM(CASE WHEN tods_GLMetadata.Metric = 'Occupancy' THEN Balance ELSE 0 END ) AS Occupancy,
SUM(CASE WHEN tods_GLMetadata.Metric = 'Payroll Dollars' THEN Balance ELSE 0 END ) AS Payroll,
SUM(CASE WHEN tods_GLMetadata.Metric = 'CF Sales' THEN Balance ELSE 0 END ) AS OperatingSales,
SUM(CASE WHEN tods_GLMetadata.Metric = 'Operations' THEN Balance ELSE 0 END ) AS OperatingExpenses
FROM ods.[JJill].[tODS_GLBalance]
INNER JOIN ods.Staging.tODS_INF_GLPCT
ON tODS_GLBalance.PageNum = tODS_INF_GLPCT.CTPAGE
INNER JOIN ods.JJill.tods_GLMetadata
ON tods_GLMetadata.AcctDescription = tODS_INF_GLPCT.CTDESC
WHERE tODS_GLBalance.FiscalYearId = 2012
AND tODS_GLBalance.FiscalMonthOfYearId = 2
AND RIGHT(LEFT(CTACCT,13),4) = 3020
GROUP BY right(left(CTACCT,13),4), tODS_GLBalance.FiscalYearId, tODS_GLBalance.FiscalMonthOfYearId, tods_GLMetadata.Metric -
Export-csv only generating the output only for single server
Hi Team,
From the below script I'm unable to generate the single output file for all the condition. The script only giving the last server output, It's skipping the all the other servers in the file.
$ScriptBlock = {
param
$Server,
$ExportCSV
$Counters= import-csv "G:\testcounter.csv"
foreach($Counter in $Counters)
$ObjectName=$Counter.ObjectName
$CounterName=$Counter.CounterName
$InstanceName=$Counter.InstanceName
$Result=Get-Counter -Counter "\\$server\$ObjectName($InstanceName)\$CounterName"
$CounterSamples = $Result | % {$_.CounterSamples}
$MasterArray = @()
foreach ($CounterSample in $CounterSamples)
$TempArray = @()
$TempArray = "" | Select Server, ObjectName, CounterName, InstanceName, SampleValue, DateTime
$Split = $CounterSample.Path.Remove(0,2)
$Split = $Split.Split("\")
$TempArray.Server = $Split[0]
$TempArray.ObjectName = $Split[1].Split("(")[0]
$TempArray.CounterName = $Split[2]
$TempArray.InstanceName = $CounterSample.InstanceName
$TempArray.SampleValue = $CounterSample.CookedValue
$TempArray.DateTime = $CounterSample.TimeStamp.ToString("yyyy-MM-dd HH:mm:ss")
$MasterArray += $TempArray
$MasterArray | Export-Csv $ExportCSV -NoType
$Servers = import-csv "G:\testcounter.csv"
foreach ($Server in $Servers)
$server=$server.server
If (Test-Connection -quiet -computer $server){
$ExportCSV = "G:\PerformaneData.csv"
Start-Job -ScriptBlock $ScriptBlock -ArgumentList @($server, $ExportCSV)Hi RatheeshAV,
In addition, to export the result to csv file, please also try to wait for all the jobs to complete then retrieve all the data and write it to a file in one step:
$ScriptBlock = {
param ($Server)
#SCRIPT
$MasterArray }
$Servers = import-csv "G:\testcounter.csv"
Get-Job | Remove-Job
$jobs=@()
foreach ($Server in $Servers){
$server=$server.server
If(Test-Connection -quiet -computer $server){
Write-Host $Server -ForegroundColor green
$ExportCSV = "G:\PerformaneData.csv"
$job+=Start-Job -ScriptBlock $ScriptBlock -ArgumentList $server
$jobs | Wait-Job
$jobs | Receive-job | Export-CSV 'd:\temp.csv' -NoTypeInformation
Refer to:
PS3 Export-CSV -Append from
multiple instances to the same csv file
If there is anything else regarding this issue, please feel free to post back.
Best Regards,
Anna Wang -
Dynamic selection of columns in report and print the output
Hi,
I tried to have dynamic selection of columns in SQL query using lexical parameter. The hitch is how to print those selected column in excel ouput ?
Suppose
I have select &col from table_name
Initial value of &col is col1 and in data layout only col1 appears
where &col was replaced with more than a column (col1,col2,col3)
now how to print the column selected at the run time,
i have coded in Before Report Trigger
:cell_val := ' <td><rw:field id:"cl1" src="col1"></rw:field></td>
<td><rw:field id:"cl2" src="col2"></rw:field></td>
<td><rw:field id:"cl3" src="col3"></rw:field></td> ' ;
and this user parameter was replaced in web source using JSP expression
<rw:getvalue id: "v_cell" src:"cell_val"></rw:getvalue>
<rw:foreach src:"g_val">
<table>
<tr>
<% =v_cell%>
</tr>
</table>
</rw:foreach>
but in the output i can see only blank columns
Regards
SureshThe strings replaced by expression <%= v_cell %>
should print the field values contained in col1,col2,col3 columns, but nothing is printed . i think the custom tags (rw...) are not replaced by the jsp expression properly. -
How to remove unnecessary data and print only the required data in JSP
Hi all
The following output is from TCP/IP connection of RFID Reader.
Connected to: /192.168.0.3
EVT:DCE DCEVERSION 3.2.0.0
EVT:DCE READER IM5 RFID Reader Ver 3.29
EVT:DCE READERINFO Basic Reader Interface Version Q
EVT:DCE READERINFO FCC 915Mhz
EVT:DCE READERINFO Copyright (C) 2002-2006 Intermec Technologies Corp.
EVT:DCE FIXEDATTRIB CHKSUM=OFF
EVT:DCE FIXEDATTRIB TTY=OFF
EVT:DCE FIXEDATTRIB ECHO=OFF
OK>
EVT:TAG H02000031323334000151E62B 1 1
EVT:TAG H02000031323334000151B775 1 1
For my JSP case I have converted above output's program in javabean I want to print only tagID and other values in a table in my JSP page. Could anybody let me know how to ignore the unnecessary data and print only values after EVT:TAG in three columns and rows, besically rows are not fixed because it depends on reader how many tags it detects?
Thanx
kvijaiHi,
Try this
private function doFilter(item:Object):Boolean
var searchString:String = myTextIp.text.toLowerCase();
if (item.name.search(searchString) == 0)
return true;
else
return false -
Printing Multiple Templates' output in a single PDF
Hi All,
I have a requirement wherein I have to print the data from several or a few templates into a single pdf.
Requirement:
All the Service Contracts created on a particular day will need to be printed in a single report
For eg: If there are 5 different Service contracts created on a particular day, then each of the service contracts will be associated with a different template, but the output should be printed within a single report.
Also, there can be more than one instance of the same service contract.
Explanation
Suppose I have SC1....SC9 and I have 5 templates Template1....Template5 and each of the SC1...SC9 may or may not be associated with a template
Consider that SC1..SC5 has to be printed in Template1, SC6, SC7 in Template2
SC8,SC9 to be printed in Template3.
Issue
Now I do get the output in a single report, but I get 2 blank pages when there is no data for Template4 and Template5.
Approach
I have create a single template file with all the 5 template in it and each of the templates are in a single page.
TEMPLATE 1+
COMPANY LOGO
<?for-each-group:G_TEMPLATE;TEMPLATE?> <?if:TEMPLATE = ‘TEMP_A’?><?for-each: G_MAIN?>
..... Template Body.....
<?split-by-page-break:?> <?end if?> <?end for-each?><?end if?> ?><?end if?> <?end for-each-group?>
The same thing repeats for Template2... Template5, with only the difference being the Template Body.
Subtemplate Approach not feasible:
I have worked with sub-templates and I know for sure that it is not feasible for this approach becuz all the pages have to be printed within the single report
Is there a way to resolve this issue of eliminating the blank pages when there is no data in the xml file for the particular template.
Thanks in advance to all who might give a thought to this
XML FILE
<?xml version="1.0" encoding="UTF-8" ?>
- <ROWSET>
- <LIST_G_MAIN>
- <G_TEMPLATE>
<TEMPLATE>TEMP_A</TEMPLATE>
- <G_MAIN>
<PARAM_1>P1</PARAM_1>
<PARAM_2>P2</PARAM_2>
<PARAM_3>P3</PARAM_3>
<PARAM_4>P4</PARAM_4>
</G_MAIN>
- <G_MAIN>
<PARAM_1>P1</PARAM_1>
<PARAM_2>P2</PARAM_2>
<PARAM_3>P3</PARAM_3>
<PARAM_4>P4</PARAM_4>
</G_MAIN>
- <G_MAIN>
<PARAM_1>P1</PARAM_1>
<PARAM_2>P2</PARAM_2>
<PARAM_3>P3</PARAM_3>
<PARAM_4>P4</PARAM_4>
</G_MAIN>
</G_TEMPLATE>
- <G_TEMPLATE>
<TEMPLATE>TEMP_B</TEMPLATE>
- <G_MAIN>
<PARAM_1>P1</PARAM_1>
<PARAM_2>P2</PARAM_2>
<PARAM_3>P3</PARAM_3>
<PARAM_4>P4</PARAM_4>
</G_MAIN>
</G_MAIN>
</G_TEMPLATE>
- <G_TEMPLATE>
<TEMPLATE>TEMP_C</TEMPLATE>
- <G_MAIN>
<PARAM_1>P1</PARAM_1>
<PARAM_2>P2</PARAM_2>
<PARAM_3>P3</PARAM_3>
<PARAM_4>P4</PARAM_4>
</G_MAIN>
- <G_MAIN>
<PARAM_1>P1</PARAM_1>
<PARAM_2>P2</PARAM_2>
<PARAM_3>P3</PARAM_3>
<PARAM_4>P4</PARAM_4>
</G_MAIN>
</G_MAIN>
</G_TEMPLATE>
</LIST_G_MAIN>
</ROWSET>assuming my corrected sample data structure is correct, here is a template that works with it. No blank pages for template D and E:
<?if@section:count(G_TEMPLATE[TEMPLATE='TEMP_A'])>0?>
<?for-each-group:G_TEMPLATE[TEMPLATE='TEMP_A'];TEMPLATE?>
Template: <?TEMPLATE?>
<?for-each:G_MAIN?>
..... Template Body A.....
Param 1: <?PARAM_1?>
Param 2: <?PARAM_2?>
Param 3: <?PARAM_3?>
Param 4: <?PARAM_4?>
<?end for-each?>
<?end for-each?>
<?end if?>=====secton brk (next page)========
<?if@section:count(G_TEMPLATE[TEMPLATE='TEMP_B'])>0?>
<?for-each-group:G_TEMPLATE[TEMPLATE='TEMP_B'];TEMPLATE?>
Template: <?TEMPLATE?>
<?for-each:G_MAIN?>
..... Template Body B.....
Param 1: <?PARAM_1?>
Param 2: <?PARAM_2?>
Param 3: <?PARAM_3?>
Param 4: <?PARAM_4?>
<?end for-each?>
<?end for-each?>
<?end if?>=====secton brk (next page)========
<?if@section:count(G_TEMPLATE[TEMPLATE='TEMP_C'])>0?>
<?for-each-group:G_TEMPLATE[TEMPLATE='TEMP_C'];TEMPLATE?>
Template: <?TEMPLATE?>
<?for-each:G_MAIN?>
..... Template Body C.....
Param 1: <?PARAM_1?>
Param 2: <?PARAM_2?>
Param 3: <?PARAM_3?>
Param 4: <?PARAM_4?>
<?end for-each?>
<?end for-each?>
<?end if?>=====secton brk (next page)========
<?if@section:count(G_TEMPLATE[TEMPLATE='TEMP_D'])>0?>
<?for-each-group:G_TEMPLATE[TEMPLATE='TEMP_D'];TEMPLATE?>
Template: <?TEMPLATE?>
<?for-each:G_MAIN?>
..... Template Body D.....
Param 1: <?PARAM_1?>
Param 2: <?PARAM_2?>
Param 3: <?PARAM_3?>
Param 4: <?PARAM_4?>
<?end for-each?>
<?end for-each?>
<?end if?>=====secton brk (next page)========
<?if@section:count(G_TEMPLATE[TEMPLATE='TEMP_E'])>0?>
<?for-each-group:G_TEMPLATE[TEMPLATE='TEMP_E'];TEMPLATE?>
Template: <?TEMPLATE?>
<?for-each:G_MAIN?>
..... Template Body E.....
Param 1: <?PARAM_1?>
Param 2: <?PARAM_2?>
Param 3: <?PARAM_3?>
Param 4: <?PARAM_4?>
<?end for-each?>
<?end for-each?>
<?end if?> -
Optimizing images for Help and Print/PDF
i'm struggling with how to optimize graphics so they look good in both Help and print/pdf output.
I use Snag-it to Capture and save as PNG 300 dpi.
I often put the images in Vision and add callouts and save as PNG.
From RH I generate a printed output (Word) which I convert to PDF.
So with all the programs an image goes through (snag-it > visio > RH > Word > PDF) i'm not always sure what the best settings are.
Does anyone have guidelines/suggestions ?
ThanksI've had very good luck going from a SnagIt capture to Robohelp to Word to PDF. I add callouts directly in SnagIt to save myself a step and save the files as a 24-bit (True Color) PNG. The graphics are very legible in the WebHelp output, in the Word document, and in the printed PDF.
The only thing that doesn't work well, I've found, is when I reduce the size of a graphic in either SnagIt or Robohelp. Instead, to keep a graphic's dimensions manageable, I either shrink the s/w application window before I grab the screen, capture just a portion of the screen, or crop the screen shot in SnagIt.
What problems have you been encountering? -
Add the elements of a single row/column of a matrix
Hello everyone,
what's the easiest way to add all the elements of a single row or column of a matrix given the matrix and the number of that row/column on LabVIEW ? The output should be a number for each row or column.
Solved!
Go to Solution.I'm assuming you are very new to LabVIEW, otherwise you would know about For loops, indexing, and the Array functions. In many programming languages, a "matrix" is just a multi-dimension array, but in LabVIEW, it is a different representation of a multi-dimension array.
If you are really working with a LabVIEW Matrix, the easiest way might be to convert the matrix to a 2D array and use the various Array functions to do the work. Note that once you have the row or column isolated as a 1D array, there is a function on the Numeric palette that will add the array elements for you (so you don't need the For loop to do that).
P.S. -- I underlined "might be", above, because I've never actually used LabVIEW's Matrix functions, but have stuck with 2 (or 3, or 4) dimension arrays.
Bob Schor -
Output as a single row with values separated by comas
I have a query that returns one column as:
Col1
a
b
c
I want the output as a single row with values separated by comas:
Col1
a,b,c
How do I do it in SQL?Or... build your own aggregation function :
SQL> create or replace type AggregateStr as object
2 (
3 tag VARCHAR2(1),
4 str VARCHAR2(4000), -- concatenation string
5 static function ODCIAggregateInitialize(sctx IN OUT AggregateStr) return number,
6 member function ODCIAggregateIterate(self IN OUT AggregateStr, value IN VARCHAR2) return number,
7 member function ODCIAggregateTerminate(self IN AggregateStr, returnValue OUT VARCHAR2, flags IN number) return number,
8 member function ODCIAggregateMerge(self IN OUT AggregateStr, ctx2 IN AggregateStr) return number
9 );
10 /
Type created.
Elapsed: 00:00:00.00
SQL>
SQL> create or replace type body AggregateStr is
2 static function ODCIAggregateInitialize(sctx IN OUT AggregateStr) return number is
3 begin
4 sctx := AggregateStr(',','');
5 return ODCIConst.Success;
6 end;
7
8 member function ODCIAggregateIterate(self IN OUT AggregateStr, value IN VARCHAR2) return number is
9 begin
10 self.str:=self.str||value||self.tag;
11 return ODCIConst.Success;
12 end;
13
14 member function ODCIAggregateTerminate(self IN AggregateStr, returnValue OUT VARCHAR2, flags IN number) return number is
15 begin
16 returnValue := rtrim(self.str,',');
17 return ODCIConst.Success;
18 end;
19
20 member function ODCIAggregateMerge(self IN OUT AggregateStr, ctx2 IN AggregateStr) return number is
21 begin
22 self.str := ctx2.str;
23 return ODCIConst.Success;
24 end;
25 end;
26 /
Type body created.
Elapsed: 00:00:00.00
SQL>
SQL> CREATE OR REPLACE FUNCTION ConcateStr (input VARCHAR2) RETURN VARCHAR2
2 PARALLEL_ENABLE AGGREGATE USING AggregateStr;
3 /
Function created.
Elapsed: 00:00:00.00
SQL>
SQL> select max(concate_string) keep (dense_rank last order by length(concate_string)) as concate_string
2 from (select ConcateStr(ename) over (order by ename) concate_string
3 from emp);
CONCATE_STRING
ADAMS,ALLEN,BLAKE,CLARK,FORD,JAMES,JONES,KING,MARTIN,MILLER,SCOTT,SMITH,TURNER,WARD
Elapsed: 00:00:00.00Or if you doesn't matter of the order :
SQL> select ConcateStr(ename)
2 from emp;
CONCATESTR(ENAME)
SMITH,ALLEN,WARD,JONES,MARTIN,BLAKE,CLARK,SCOTT,KING,TURNER,ADAMS,JAMES,FORD,MILLERNicolas.
adding the second query.
Message was edited by:
N. Gasparotto -
No printing :I can't print anymore, printing the same file with another program is ok, printing form LR (in the same system and printer of course :-) ): Preparing and Printing indicatorbar in the left hand upper corner are running and completing, but no output at all to my printer. I have been printing before. Next I upgraded to LR5.7.1 but the problem stays. Perhaps some adjustment is changed by me unintentionally, but I have no idea. Does anybody know what to check? Printing to file is also strange,the canvas only seems to accept A4, and crops any image relative to that size, so a 10x15 cm print on 10 x 15 cm paper is cropped to 10x15/2. Anybody any idea? (system win 8.1 64, printer HP B8550)
I accidentally solved my mystery. For some reason it was set to "print to file". I changed it to "printer" and now I am able to print.
-
Append a file with date and name in the output file
I am running a script which produce an output in excel file, I would like the server name and the date in the output file, Both the servername and date has declared at the beginning of the script as
$server = test1
$date = Get-Date -uformat %Y-%m-%d
I am able to append either server or date but not both. Could you please help me out on this.
I would like the output file as '
server_report_date.xlsI got this working by
"C:\Aravind\Scripts\$server-"+"Report-" +"$Date"+".xls"
Thanks!!
Maybe you are looking for
-
Emac Fire Wire to RCA DV Converter
Is there a Converter out there like the "Apple Mini-DVI to Video Adapter" for the Emac?
-
Icon bounces and iCal crashes immediately in Leopard
I did not even have a chance to check email notification issues. iCal fails to open since 10.5 upgrade. the icon bounces in the dock, iCal windows fleshes for a split of a second - and that is it. Apparently, something tells iCal to quit, as it is no
-
How do I add memory to a MacBook Pro?
How do I add memory to my MacBook Pro?
-
Hi, I am passing table name in a procedure. Table name will be actually passed when calling this procedure. I am not able to compile this procedure without actual table name. How do i can do that? Thanks Anjiv
-
Process flow of capital project and indirect project
Hi , Can anybody provide me some document related to the process flow of capital project and indirect projects . Thanks/vinay