PREPARE FILE Examples
Example 1:
|
|
|
|
|
Logical file: |
TIMECARD |
|
Text file: |
PAYDATA.??? (.TXT under SUNDB86x or as defined in screen definition file under PLBCM.) |
|
Mode: |
SHARE (by default) |
Example 2:
|
CMP_SHARENF |
INTEGER |
4,"0x20" |
|
|
|
|
|
Logical file: |
TRANSFLE |
|
Text file: |
GLTRANS.JAN |
|
Mode: |
EXCLUSIVE |
Example 3:
|
|
|
|
|
|
|
|
The file OLDFILE.TXT would be erased from the disk.
Example 4:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Logical file: |
FILE |
|
Text file: |
c:\data\control.data at the server |
|
Server address: |
www.server.net |
|
Server port: |
3934 |
|
Mode: |
SHARE |
Example 5:
|
|
|
|
|
|
|
|
|
|
|
|
|
Logical file: |
FILE |
|
Text file: |
control.data at the server |
|
Server address: |
209.20.30.5 |
|
Server port: |
502 |
|
Mode: |
SHARE |
Example 6:
This example uses a DNS hostname 'www.mysundm.net' to logon to a Data Manager using the default 3934 port number. Also, the file name is being PREPAREd in a directory that exists on the Data Manager system.
|
|
|
|
|
|
|
|
|
|
|
|
|
Logical file: |
FILE |
|
Text file: |
c:\temp\myfile.txt |
|
Server address: |
www.mysundm.net |
|
Server port: |
3934 |
|
Mode: |
SHARE |
![]() |