tldm-universe/Ardent/UV/APP.PROGS/21A2

48 lines
1.5 KiB
Plaintext
Raw Permalink Normal View History

2024-09-09 21:51:08 +00:00
SUBROUTINE U21A2( proc, ibn, pib, sib, ip, obn, pob, sob )
*******************************************************************************
*
* SCLIP U21A2
*
* 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.
*
*******************************************************************************
*
* Deletes values from the current output buffer
*
********************************************************************************
DIM parse(200)
* get line after U21A2
REMOVE flag FROM proc SETTING x
flag = TRIM(flag)
CALL $INDIRECT( result, pib, sib, pob, sob, obn, flag)
flag = result
IF flag THEN
IF obn THEN
FOR i = 1 TO flag
DEL sob<dcount(sob, @FM)>
NEXT i
END ELSE
FOR i = 1 TO flag
DEL pob<dcount(pob, @FM)>
NEXT i
END
END ELSE
IF obn THEN sob = "" ELSE pob = ""
END
RETURN
END