Say "Output file exists....Type 1 to replace, 2 to append all"
Say "entries, 3 to append unique entries only, or 4 to exit."
Do Forever
Parse Upper Pull key .
If key = 4 Then Exit 1
if key = 1 | key = 2 | key = 3 Then Leave
Say ''
Say "Please type 1, 2, 3, or 4."
End
if key = 1 Then Do
if outexists <> '' then call sysfiledelete outfile
if groupexists <> '' then call sysfiledelete groupfile
outexists = ''
groupexists = ''
end
if key = 2 then append = 'all'
if key = 3 then append = 'unique'
end
/* mods for jstreet */
If SAVE_BOOK_NAME <> GetCodeLen() then Signal Err3
valu = CharIn(filespec, , len)
if outexists = '' then do
if 0 <> LineOut(outfile, '"Nickname","Full Name","Email Address","Telephone Number","Fax Number","Organization","Title","Postal Address","Notes"') then signal err4
end
if groupexists = '' then do
if 0 <> LineOut(groupfile, '"Group Nickname","Nickame"') then signal err4