tldm-universe/Ardent/UV/APP.PROGS/41AD

38 lines
1.4 KiB
Plaintext
Raw Permalink Normal View History

2024-09-09 21:51:08 +00:00
subroutine U41AD(proc, ibn, pib, sib, ip, obn, pob, sob)
*******************************************************************************
*
* HOLLPIB U41AD
*
* 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.
*
*******************************************************************************
* HOLLPIB
* This exit replaces the 'current' item in the primary input buffer
* with a character string from the line in the PROC after the
* invocation. The string may contain blanks which will be
* turned into attribute marks, so a single call to this exit can
* insert more than one item.
*******************************************************************************
temp = pib[1,ip]
pos = COUNT(temp,@FM)
REMOVE string FROM proc SETTING x
CONVERT " " TO @FM IN string
pib = REPLACE(pib, pos + 1, 0, 0, string)
return
END