Sponsored Content
Full Discussion: Generating file from sqlplus
Top Forums Shell Programming and Scripting Generating file from sqlplus Post 302848905 by gnnsprapa on Friday 30th of August 2013 10:30:51 AM
Old 08-30-2013
Hi,

apologize...Smilie

PFB the query:
Code:
select coupon_code as coupon_cd,
              date_modified as modified_dt,
              discount_type,
              coupon_type,
              discount_value,
              distribution_method,
              distribution_type,
              hps_campaign_id,
              hps_campaign_description as hps_campaign_desc,
              short_description as short_desc,
              long_description as long_desc,
              redemption_start_date as redemption_start_dt,
              redemption_stop_date as redemption_stop_dt,
              ia_insert_dt as insert_dt, 
              ia_update_dt as update_dt
    from bidw.v_sas_coupon
    where rownum <= 100
	;

Table format is :
Code:
COUPON_CODE,-varchar2(128)
 COUPON_TYPE, -VARCHAR2 (10 Byte)
DATE_MODIFIED,-DATE
 DISCOUNT_TYPE,-VARCHAR2 (1 Byte)
DISCOUNT_VALUE, -NUMBER (15)
DISTRIBUTION_METHOD,-VARCHAR2 (255 Byte)
 DISTRIBUTION_TYPE,-VARCHAR2 (21 Byte)
 HPS_CAMPAIGN_DESCRIPTION,-VARCHAR2 (255 Byte)
 HPS_CAMPAIGN_ID, -VARCHAR2 (256 Byte)
LONG_DESCRIPTION, -VARCHAR2 (255 Byte)
REDEMPTION_START_DATE, -DATE
REDEMPTION_STOP_DATE,-DATE
 SHORT_DESCRIPTION, -VARCHAR2 (2000 Byte)
IA_INSERT_DT, - -DATE
IA_UPDATE_DT -DATE


Please let me know if i provided all details or not
TIA

Last edited by Scott; 08-30-2013 at 11:32 AM.. Reason: CODE tags NOT ICODE tags, please.
 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Bash Scripts - File generating

Forgive the daft requests - I'm still a learner :D I need a script so that I can test another script (I'm confused already) The script I am looking for should generate a new file in the same directory (called newfile1 or what ever) and also generate text within the new file (Hello world? What... (1 Reply)
Discussion started by: JayC89
1 Replies

2. Shell Programming and Scripting

Ksh - finding pattern in file and generating a new file

I am trying to find for the pattern in first 5 bytes of every line in a text file and then generate a new file with the pattern found. Example: expected pattern is '-' to be serached in first 5 bytes of file only. Input File ab-cd jan-09 ddddd jan09 cc-ww jan09 dsgdq jan-09 ... (2 Replies)
Discussion started by: net
2 Replies

3. UNIX for Dummies Questions & Answers

Generating different columns from same file

Hi, Our requirement is we have to create file from one file where all the rows from source file is converted into columns of the target file. For example Source file is : Status Report ABC Generated: 2009-05-05 08:49:47 Job start time=2009-05-05 08:43:43 Job end time=2009-05-05... (1 Reply)
Discussion started by: Amey Joshi
1 Replies

4. Shell Programming and Scripting

Performance issue in UNIX while generating .dat file from large text file

Hello Gurus, We are facing some performance issue in UNIX. If someone had faced such kind of issue in past please provide your suggestions on this . Problem Definition: /Few of load processes of our Finance Application are facing issue in UNIX when they uses a shell script having below... (19 Replies)
Discussion started by: KRAMA
19 Replies

5. Emergency UNIX and Linux Support

String search and generating file

Hi Gurus, I have a requirement as below I have text file a.txt which contains hi hello process update status Output for file Ok to Proceed no issues good data arrangement My requirement here is i need to read the file and check for the words "OK to Proceed" and if it is available... (14 Replies)
Discussion started by: pssandeep
14 Replies

6. UNIX for Dummies Questions & Answers

Generating a Config File

HI, I want to append some configuration statements to the existing file in unix to it's 3 line , 7th line and 28 line. There is a file generated by our system job, to this I need to add some lines as mentioned below. DIR=/usr/CDR - line 3 Source=/usr/src - line 7 Target=/usr/tgt - line... (2 Replies)
Discussion started by: mora
2 Replies

7. Shell Programming and Scripting

Sqlplus error - sqlplus -s <login/password@dbname> : No such file or directory

i am using bash shell Whenever i declare an array, and then using sqlplus, i am getting sqlplus error and return code 127. IFS="," declare -a Arr=($Variable1); SQLPLUS=sqlplus -s "${DBUSER}"/"${DBPASS}"@"${DBASE} echo "set head off ; " > ${SQLCMD} echo "set PAGESIZE 0 ;" >> ${SQLCMD}... (6 Replies)
Discussion started by: arghadeep adity
6 Replies

8. UNIX for Dummies Questions & Answers

Generating a CSV file from a text file

Hi Guys, I have a simple request. I have a file in w3c format. Each file has 2 header lines. Rest of the lines are 16 columns each. They are separated by Tab. I need to discard the first 2 lines and then write each column of the txt file into a seperate column of CSV. I tried the command below... (1 Reply)
Discussion started by: tinkugadu
1 Replies

9. Shell Programming and Scripting

Check to see if a file is generating

Hi guys, I am pulling my hair out here. I have a file that comes in, once it finishes i want to move it to a new location. This sounds all very easy but my solution is failing and moves the file before it has finished generating. isrun=`ps -ef | grep -i filename | grep -v grep | wc -l` ... (8 Replies)
Discussion started by: twinion
8 Replies

10. Shell Programming and Scripting

Generating xml file from UNIX

i have a unix script which generates the csv file. the data in csv file is dynamic. how can i convert/move the data from csv file to xml. please suggest (1 Reply)
Discussion started by: archana25
1 Replies
CFFTOT1(1)						      General Commands Manual							CFFTOT1(1)

NAME
cfftot1 - convert PostScript font from CFF to Type 1 SYNOPSIS
cfftot1 [-a] [input [output]] DESCRIPTION
Cfftot1 converts PostScript font programs in the Compact Font Format (CFF) into Type 1 font programs in PFB or PFA format, preserving all hints that can be represented in Type 1. The input file should be a raw CFF file or a PostScript-flavored OpenType font. If the file output is not specified output goes to the standard output. If the file input is not specified input comes from the standard input. OPTIONS
-a, --pfa Output font in ASCII PFA format. -b, --pfb Output font in binary PFB format. This is the default. -n name, --name name Output the CFF's component font named name. CFF files can contain more than one font, although few do. Use this option to select a particular font from a multi-font collection. By default cfftot1 chooses the collection's first font. -o file, --output file Write output font to file instead of the standard output. -q, --quiet Do not generate any error messages. -h, --help Print usage information and exit. -v, --version Print the version number and some short non-warranty information and exit. SEE ALSO
t1binary(1), t1ascii(1) Adobe Type 1 Font Format Adobe Technical Notes #5176, The Compact Font Format Specification, and #5177, The Type 2 Charstring Format OpenType Specification, Version 1.4 AUTHOR
Eddie Kohler (ekohler@gmail.com) Version 2.92 LCDF Typetools CFFTOT1(1)
All times are GMT -4. The time now is 10:16 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy