How to remove enter in oracle utf file - oracle

The problem is to remove enter and join in one line for ': 86:', which lasts until ': 61:'
http://wklejto.pl/840401

:86:770 PRZELEW KRAJOWY SP; Z RACH.: 78105000861000309030383012; OD:
DOZ SPÓŁKA AKCYJNA DIRECT SPÓŁKA KOMANDYTOWA KINGA C.GILLETTE 11
94-406 ŁÓD¬; TYT.:
/VAT/10655,40/IDC/6252315798/INV/FV/334/PL/2001/TXT/FAKTURA;
DATA STEMPLA: 30.04.2020; TNR: 191181084638228.280001
:61:2005040504DN12655,40NTRFNONREF//EL011880-016890
368-PODATEK VAT

Related

How can i fix Syntax error, ";" expected but "ELSE" found

hi i want to run this code but it show me several errors please any one can help
Program Climat;
var clim: integer;
begin
Writeln('entrez degré');
Readln(clim);
if (clim < 0) then
Writeln('c est glacial ');
else
if (clim < 30) then
Writeln('le temps est doux');
else
Writeln('trés chaud'):
end.
Pascal expects one statement between then and else, and a statement does not ends with a ;. ; is used as a separator of statements in compound statment.
To get rid of your errors do one of:
Remove ; at the end of the Writeln('c est glacial ') and Writeln('le temps est doux')
or use compound statements: write then begin and end else instead of just then and else.
Also after the last Writeln there should be ; instead of :.

USING CASE STATEMENT IN SQL LOADER CONTROL FILE

I have a control file that loads text to oracle but i am trying to strip first 3 digits of Phone number example 1-469-428-5920 to 469-428-5920, please see below control file. what should be the syntax?
I keep getting error below, Please help
thanks
options (ERRORS=1000, SKIP=2)
load data
infile '/clients/vca2/data/API/ADHOC_LOAD/VCA_RP_Hospital_Website_Master_List_VCA.CSV'
replace
into table VCABARK_CDI_DV.RP_HOSPITAL_MASTER_LIST
fields terminated by '|'
OPTIONALLY ENCLOSED BY '"' AND '"'
trailing nullcols
(
HOSPITAL_EXT_NUMBER,
REGION,
HOSPITAL_NAME,
ADDRESS_1,
CITY ,
STATE,
POSTAL_CODE,
PHONE "CASE WHEN SUBSTR(:PHONE,1,2) = '1-' THEN ‘SUBSTR(:PHONE,3)’ ELSE ‘:PHONE’ END",
RCF_PHONE,
FAX ,
EMAIL ,
WEBSITE_CLASS,
DOMAIN,
SHORTNAME,
PMS,
INDICATOR_24_HOUR,
CARECLUB,
HOME_DELIVERY,
APPOINTMENT_CTA,
FREE_FIRST_EXAM,
AAHA ,
AAFP_MEMBER,
CAT_FRIENDLY,
FEAR_FREE ,
LOW_STRESS, E
VECCS,
FACEBOOK_URL,
GMB_URL ,
YELP_URL,
BOOK_URL,
REQUEST_URL,
HOURS_OPERATIONS_URL,
HD_URL_SUBDOMAIN,
HD_URL_ORIGINAL,
PET_PORTAL_URL,
AIS_CLINIC_ID,
AIS_TOKEN
)
You haven't said what error you are getting, but you should have quotes - curly or otherwise - within your case expression. Instead of:
PHONE "CASE WHEN SUBSTR(:PHONE,1,2) = '1-' THEN ‘SUBSTR(:PHONE,3)’ ELSE ‘:PHONE’ END",
use:
PHONE "CASE WHEN SUBSTR(:PHONE,1,2) = '1-' THEN SUBSTR(:PHONE,3) ELSE :PHONE END",
You could also just keep the last 12:
PHONE "SUBSTR(:PHONE, -12, 12)",

neo4j-shell on windows does not accept square brackets

I have installed neo4j on windows 10 and try to copy my LOAD-CSV-Commands into the neo4j-shell. I open the Command-Prompt of neo4j and start the neo4j-shell.
The import of the nodes works fine but when i try to copy the following line into the neo4j-shell:
LOAD CSV WITH HEADERS FROM "file:///C:/neo4j/CC/autor-streitschrift.csv"
AS line FIELDTERMINATOR '|'
// WITH line LIMIT 50
MATCH (from {id:line.Autor}), (to {id:line.Streitschrift}) create from-[:AUTOR_VON]->to
RETURN count(*);
... the square-brackets are not coppied:
neo4j-sh (?)$ LOAD CSV WITH HEADERS FROM "file:///C:/neo4j/CC/autor-streitschrift.csv"
> AS line FIELDTERMINATOR '|'
> // WITH line LIMIT 50
> MATCH (from {id:line.Autor}), (to {id:line.Streitschrift}) create from-AUTOR_VON->to
> RETURN count(*);
62 ms
WARNING: Invalid input 'A': expected whitespace, [ or '-' (line 4, column 72 (offset: 195))
"MATCH (from {id:line.Autor}), (to {id:line.Streitschrift}) create from-AUTOR_VON->to"
^
neo4j-sh (?)$
I have reproduced this on a windows7-machine.
Thanks in advance for any hints,
Andreas
I realize it's awfully late, but in my case I was able to enter square brackets using Alt+91 and Alt+93. That's on Windows 7 using a german keyboard layout.

price in menu+total price (pascal)

My program should allow the user to choose ice cream from menu then add the price for the ice cream to show total price of the ice cream.However my output for total price is wrong. For example if i choose 1 and 2 the answer should be 1.5+1.7=3.2 but I get 3.4. Also if i choose 2 I'll only get error. Please help me.
program iceCream;
var
count,i: integer;
price:array[1..50]of real;
totalPrice: real;
choice: integer;
begin
count:= 0;
writeln ( ' ICE CREAM FLAVOUR');
write ( ' 1.Vanilla: RM 1.50 | 3.Chocolate: RM 2.00');
writeln;
write ( ' 2. Strawberry: RM 1.70 | 0. Exit ');
writeln;
repeat
write ( ' Enter your choice(number): ');
readln ( choice);
if choice <= 3 then
count:= count+1
else
writeln ( 'Invalid choice');
case choice of
1: begin
price[i]:= 1.50;
end;
2: begin
price[i]:= 1.70 ;
end;
3: begin
price[i]:= 2.00;
end;
end;
for i:= 1 to count do
begin
totalPrice:= totalPrice+price[i];
end;
until choice = 0;
writeln ( ' Total ice-cream: ', count);
readln;
writeln ( ' Total price: RM ', totalPrice:2:2);
readln;
end.
I won't answer your question here. It's more important to find out what you're doing wrong and how you can solve the problem on your own.
How to find out what's going wrong?
The compiler shows two warnings when it compiles your code:
Warnings: 2
project1.lpr(29,17) Warning: Variable "i" does not seem to be initialized
project1.lpr(44,25) Warning: Variable "totalPrice" does not seem to be initialized
This kind of warnings appears when you read a variable without having a value assigned to it. The compiler leads you to the location of the unsafe code. The first warning is located in line 29 in column 17:
1: begin
price[i]:= 1.50; // i has not been set before. So its value is undefined or 0
end;
Is your intention to use set Price[i] here? So why hasn't it been assigned to a value before?
Or do you have a different variable that holds the number of ice creams? Why don't you use that?
Let's take a look at the second warning in line 44 in column 25. It's this line:
totalPrice:= totalPrice+price[i];
// ^
Are you sure totalPrice has been initialized correctly?
Even though you initialize it correctly the program may still doesn't work properly. In that case it helps to debug the application.
Open your application in the Lazarus IDE and press F8 to step through your program. You go from line to during the execution of your program. You will see what's wrong then.

How to substitute the first line and split the first string on the following line:

I am just new to scripting and I need some help. I have something like a bazillion files that look like this.
Assign F2 Height
3IleN 2.34025e+07
4PheN 2.05028e+07
6LysN 1.43672e+07
7ThrN 1.49120e+07
8LeuN 1.30838e+07
9ThrN 1.44298e+07
And i want it to look like this + save it in another file with the same name as the previous file however, with a "MOD" written at the beginning.
Number AA Height
3 IleN 6.20756e+07
4 PheN 5.26499e+07
7 ThrN 3.00216e+07
8 LeuN 3.26377e+07
9 ThrN 4.03901e+07
10 GlyN 2.73659e+07
12 ThrN 3.16319e+07
13 IleN 5.94604e+07
If you could please describe and explain the parameters used, that would be of great help.
Thanks!
The following should work for you:
sed 's/^\([0-9]*\)/\1 /' filename

Resources