View previous topic :: View next topic |
Author |
Message |
yadav2005 Intermediate

Joined: 10 Jan 2005 Posts: 348 Topics: 144
|
Posted: Tue Jun 12, 2007 1:16 am Post subject: unable to understand Easytrieve Code |
|
|
Hai All,
I am unable to understand a small piece of EASYTRIEVE CODE:
Code: |
FILE Persnl FB(150 1800)
%Persnl
FILE Sortwrk FB(150 1800) VIRTUAL
COPY Persnl
|
My understanding is that
1.File Pernl is FB with 150 bytes why is 1800 declared there - cannot understand.
2.% Persnl is like a copy book i guess
3.File Sortwrk is a temporary File.
4.Copy Persnl - cannot understand
Please help me in understanding. |
|
Back to top |
|
 |
CICS Guy Intermediate
Joined: 30 Apr 2007 Posts: 292 Topics: 3
|
Posted: Tue Jun 12, 2007 3:44 am Post subject: |
|
|
Quote: |
The COPY statement duplicates the field definitions of a named file to another
file to alleviate re-entering the same definition.
| The Persnl in the COPY is the Persnl on the FILE line. |
|
Back to top |
|
 |
Grant Beginner
Joined: 02 Dec 2002 Posts: 45 Topics: 1 Location: Sydney, NSW, Australia
|
Posted: Tue Jun 12, 2007 3:51 am Post subject: |
|
|
1800 is the BLKSIZE. You should have a value of 0 to allow the block size to be determined by the operating system |
|
Back to top |
|
 |
|
|