37 lines
1.2 KiB
Plaintext
Executable File
37 lines
1.2 KiB
Plaintext
Executable File
SUBROUTINE U201E(ANS,STATUS,DATA,TYPE)
|
|
*******************************************************************************
|
|
*
|
|
* 201E - CALC NBR OF FIELDS SUBROUTINE
|
|
*
|
|
* Module %M% Version %I% Date %H%
|
|
*
|
|
* (c) Copyright 1998 Ardent Software Inc. - All Rights Reserved
|
|
* This is unpublished proprietary source code of Ardent Software Inc.
|
|
* The copyright notice above does not evidence any actual or intended
|
|
* publication of such source code.
|
|
*
|
|
*******************************************************************************
|
|
*
|
|
* Maintenence log - insert most recent change descriptions at top
|
|
*
|
|
* Date.... GTAR# WHO Description.........................................
|
|
* 10/14/98 23801 SAP Change copyrights.
|
|
* 07/25/88 - - Maintenence log purged at 5.2.1, see release 5.1.10.
|
|
*
|
|
*******************************************************************************
|
|
$OPTIONS DEFAULT
|
|
|
|
ANS = ''
|
|
STATUS = 0
|
|
OPEN '',@FILENAME TO FILE.NAME ELSE
|
|
ABORT 'CAN NOT OPEN ':@FILENAME
|
|
END
|
|
IF STATUS() = 1 AND @RECORD = '' THEN
|
|
READ RECORD FROM FILE.NAME,@ID ELSE RECORD = ''; STATUS = 1
|
|
@RECORD = RECORD
|
|
END
|
|
ANS = DCOUNT(@RECORD,@AM)
|
|
STATUS = 0
|
|
RETURN
|
|
END
|