Search found 5 matches

by maxino
Thu Jan 25, 2024 12:00 pm
Forum: JDBCR4
Topic: Accesssing External Databases
Replies: 4
Views: 3062

Re: Accesssing External Databases

Thanks Scott for the reply.

I found the sqljdbc.jar file

It's in the directory
/QIBM/UserData/Java400/ext

Perhaps I referred to an old article of yours in which you indicated this directory.

Thanks again
by maxino
Wed Jan 24, 2024 10:17 am
Forum: General
Topic: copy file txt
Replies: 3
Views: 2439

Re: copy file txt

Thanks for the reply. The problem was the CCSID. I solved it like this: CPYFRMSTMF FROMSTMF('/dir/file.txt') TOMBR('/QSYS.LIB/LIBR.LIB/FILEX.FILE/FILEX.MBR') MBROPT(*REPLACE) STMFCCSID(1208) Thanks again
by maxino
Tue Jan 23, 2024 2:10 pm
Forum: General
Topic: copy file txt
Replies: 3
Views: 2439

copy file txt

I need to copy a txt file to as400.

If I do CPYFRMPCD or CPYFRMSTMF the accented characters move the length of the file 1 or 2 positions.

What can I do to avoid this?

Thank you
by maxino
Tue Jan 23, 2024 11:07 am
Forum: JDBCR4
Topic: Accesssing External Databases
Replies: 4
Views: 3062

Re: Accesssing External Databases

Thanks for the reply Scott. If programs work ONLY if a CLASSPATH exists, I certainly did the ADDENVVAR command. The question is, how do I see where I put the jar file? If it's not in /java/jdbc/ where is it? Is there a command to see where I put it? Best regard PS: The ADDENVVAR command was almost c...
by maxino
Sun Jan 21, 2024 9:24 am
Forum: JDBCR4
Topic: Accesssing External Databases
Replies: 4
Views: 3062

Accesssing External Databases

Good morning, I read data from a SQL server. My as400 is V6R1 In Scott's manual, it says to: Set CLASSPATH as follows: ADDENVVAR ENVVAR(CLASSPATH) VALUE('/java/jdbc/jdts-1.3.1.jar') In my as400 in the indicated directory: /java/jdbc/ jdts-1.3.1.jar file is missing How does it all work? If I use the ...