<?xml version="1.0" encoding="utf-8"?>
<ManualTopic ID="/baanerp/da/onlinemanual/000054" xml:lang="en">
	<Header>
		<Title xmlns:HTML="http://www.w3.org/TR/REC-html40">dadlllink_file</Title>
	</Header>
	<GeneralSection><GeneralSection><SectionTitle>DLL Usage description</SectionTitle>
			<Paragraph class="Default">This library contains functions for copying ASCII files from the source site to the target site and for compressing and decompressing ASCII files.</Paragraph>
			<Paragraph class="Default">Note on the function specifications: "iff" means "if and only if".</Paragraph>
		</GeneralSection>
		<GeneralSection><SectionTitle>DLL PROTOTYPES</SectionTitle>
			<Formula space-and-orientation="indented-estimated"><Paragraph class="Default">
function extern long lfile.compress.or.uncompress.files(
                long no.files,
                const domain daxch.path file.name() fixed,
                const long active.batl(),
                long do.compress )

pre   : The number of elements of the arrays(file.name, active.batl)
        Filenames in file.name array contain the full path name
post  : If return then for all 1 &lt;= n &lt;= no.files where active.batl(n):
        the local file file.name(n) has been replaced by:
                if do.compress = true: its compressed version
                if do.compress = false: its uncompressed version
        For all 1 &lt;= n &lt;= no.files where not active.batl(n):
        no (un)compress action has been done
return: False if at least one file to be (un)compressed could not be
        (un)compressed;
                true if all files to be (un)compressed have been
                (un)compressed successfully.
desc  : This funcion is used to compress or uncompress the files.
        No file has to be (un)compressed have been (un)compressed
        sucessfully.

function extern long lfile.retrieve.files(
                domain daxch.link link,
                long no.files,
                const domain daxch.path source.file.name() fixed,
                const domain daxch.path target.file.name() fixed,
                const long active.batl(),
                domain daxch.comp startup.company )

pre   : The number of elements of the arrays (source.file.name,
        target.file.name, active.batl) &gt;= no.files
        Filenames in source.file.name and target.file.name include
        the full path name.
|N/a            For all 1 &lt;= n &lt;= no.files the directory of the
|N/a            target.file.name(n) exists
post  : If return then for all 1 &lt;= n &lt;= no.files where not
        isspace(source.file.name(n)) and active.batl(n):
        the file source.file.name(n) from the source system of
        the exchange link ha sbeen copied to a local file
        target.file.name(n).
For all 1 &lt;= n &lt;= no.files where isspace(source.file.name(n))
        or not active.batl(n): no file has been copied
return: False if the exchange link does not exist or at least one file
                to be copied could not be copied;
                True if all fiels to be copied have been copied
                successfully

desc  : This function is used to copy the files for a batch to import
        from the source system to the target system.
        No file has been copied if:
        - there is no corresponding export batch line at the source
          site (this is the case if the source.file.name is empty), or
        - the import batch line is inactive.
</Paragraph>
			</Formula>
		</GeneralSection>
	</GeneralSection>
	<RelatedTopics><SectionTitle>
                              Related topics
                           </SectionTitle>
		<RelTopic><Link href="/baanerp/da/onlinemanual/000102" role="manual">Libraries</Link>
		</RelTopic>
	</RelatedTopics>
</ManualTopic>
