I have a customer who's looking to move from a custom built database,
to another, and the new db can import our data if we give it to them
in ASCII format. So, how do I do this?
I am able to export mailing lists through a function of the database,
but we have much more info than just addresses. We can do a full
backup dump file, but of course, it's not in an easily readable
format. The D3 file manager has an export button, but it's always
greyed out.
Are there any utilities that can help me? We use AccuTerm to connect,
and I see capture and download options, but how would I capture our
entire database.
I know I'm probably being incredibly vague, but any help would be
greatly appreciated, if I can be more clear, let me know. Thanks in
advance!
"cweeklund" <cwee...@hotmail.com> wrote in message
news:eaf28b2d.02022...@posting.google.com...
> Let me preface this post by saying that I know nothing about Pick, D3,
> or much about databases - I'm a network/pc guy. So please be gentle.
You're over-qualified for Pick already :-)
> I have a customer who's looking to move from a custom built database,
> to another, and the new db can import our data if we give it to them
> in ASCII format. So, how do I do this?
There are at least two popular ways:
1. LIST or SORT a file and capture the output using Accuterm or other
emulator, then save to ASCII format text.
a. A subset of this is to modify the LIST/SORT verb to produce
tab-delimited output if you prefer it in that format. I don't remember the
specific mod to do because I usually export by doing it this way:
2. Write a program to wade through the file, and pick up the fields desired,
using the dictionaries to help determine which fields are important, then
CRT the fields in any format required: delimited or fixed field length.
> I am able to export mailing lists through a function of the database,
> but we have much more info than just addresses. We can do a full
> backup dump file, but of course, it's not in an easily readable
> format. The D3 file manager has an export button, but it's always
> greyed out.
>
> Are there any utilities that can help me? We use AccuTerm to connect,
> and I see capture and download options, but how would I capture our
> entire database.
Accuterm may have some built-in utilities, but others can comment here,
because I am using wIntegrate currently.
> I know I'm probably being incredibly vague, but any help would be
> greatly appreciated, if I can be more clear, let me know. Thanks in
> advance!
Being specific is for programmers. Being vague is why there are analysts.
Good luck, and ask more questions as they arise (they will).
Ed
http://www.jes.com/olbooks.html
Start with the RainingData doc, that explains the OS/DB setup
you could then use the Pick/BASIC: A Programmer's Guide
to write utilities to automate this process <g>
After this effort, you will either succeed as you are a *very*
bright fellow, or you will end up taking sugggestion #1.
By the way, from *what* D3 to what database structure. The
file structures are most likely not compatable
HTH, Patrick
P.S. There are professionals in this group who may have a
hard time with your project (details are vague) If you
succeed let us know.
Accuterm includes data transfer programs FT and FTD
Check that these are installed in the account containing your data
If not look in the Accuterm manual for installation instructions.
Find the files you need to transfer
In the data account enter
LF (p
this will send a list of files to the printer
In each file find the DICT items that represent the data you want to
transfer. In the data account enter
LISTDICT Filename BY A2 (p
this will send the list of DICT items to the printer
Having got the file names and dict names then use Accuterm FTD comand
FTD
S - send
K - kermit
Pick file name - enter a Filename from the LF lreport
Pick item list - enter * to get all items
target file - enter c:\foldername\filename.xls (or filename.txt)
Note that older versions of Accuterm only accept filnemae in 8.3
format
Attributes to transfer - enter the DICT names representing the requird
data
Generate header record - answer Y - the top row in filename.xls will
have the DICT item names
Explode multivalue fields - answer Y - if there are any such fields
then you will get a row for each value
Accuterm should now transfer the data as a tab delimited file that you
can open in Excel
Note: Early versions of Accuterm do not support F correlatives so any
DICT item with an F correlative in attribute 7 or 8 cannot be used.
Contact Accuterm (www.asent.com) to check the capabilities of your
version.
Hope this helps
Mike
"Ed Sheehan" <NOed...@xmission.com> wrote in message
news:a53u3k$qm2$1...@news.xmission.com...
There is a little trick in D3 that allows you to create tab-delimited files.
This is done by copying the MD item "SORT" to "SORTT" and adding a 3rd value
(53) to field 2 so the new verb looks like:
'SORTT'
01 va
02 aa
5d
53
Now is your CUSTOMER file looks like:
001 Name
002 Address1
003 Address2
004 City
005 State
006 Zip
007 Balance
Then you could do the following:
:SORT CUSTOMER BY NAME ID-SUPP NAME ADDRESS1 ADDRESS2 CITY STATE ZIP BALANCE
(P
Hold entry# 002
Now you can copy this spooler entry wherever you want by doing:
:COPY PEQS 2 (D
TO:(DOS:D/Public Customer.txt
This should give you an exportable file. This seems to be much easier than
working with third-party software. The only downside is that the stupid
modified SORTT command doesn't put a column heading in the print file along
with the data, so you'll have to deal with this.
Hope this helps.
Bill
"cweeklund" <cwee...@hotmail.com> wrote in message
news:eaf28b2d.02022...@posting.google.com...
the problem here is that "ASCII" format could mean anything: a programmer
for data conversion shouldnt
cost too much, id do it for 50 an hour.
"Bill H" <wpha...@att.net> wrote in message
news:A6hd8.1358$%D5....@rwcrnsc52.ops.asp.att.net...
Cheers
Mike.
Can you imagine how much code will break with a 'null' item id? E.g.
LOOP
READNEXT ItemId ELSE ItemId = ""
UNTIL ItemId = "" DO
.
.
REPEAT
Haven't we seen this before, lots of times? :-) Other than that, an
excellent idea to overcome the problem. It can also be built on the fly.
Bill
"Mike Preece" <mic...@preece.net> wrote in message
news:1b0b566c.02022...@posting.google.com...
Y.Si
"cweeklund" <cwee...@hotmail.com> wrote in message
news:eaf28b2d.02022...@posting.google.com...
LOOP
READNEXT ItemId ELSE EXIT
...
REPEAT
You wouldn't really want to leave the column headings as data in your
file. Maybe you could copy the data to a work file, create the heading
data in a null item, and run your AQL statement against the workfile
...USING DICT...
Or maybe we could wait for a fix from RD?
Cheers
Mike.
"Bill H" <wpha...@att.net> wrote in message news:<oZud8.7396$%D5.2...@rwcrnsc52.ops.asp.att.net>...
We have developed "PixieEditor" which can export to MySQL, MSAccess or
MS_SQL_SERVER
Details and download 30-day trial at
http://www.pixieware.com
When you say "mailing lists", do you need to get address data into Microsoft
Outlook contacts and distribution lists by chance? If so, I have a direct
solution. Post a note here. Exactly what are your requirements?
Tony
(please do not e-mail SneakEmail AntiSpam address)
"cweeklund" <cwee...@hotmail.com> wrote in message
news:eaf28b2d.02022...@posting.google.com...
"Tony Gravagno \(AntiSPAM\)" <b9d0z...@sneakemail.com> wrote in message news:<6fze8.5353$FY5.4...@news2.west.cox.net>...