|
Cool! Lunch for me, too, no nap, however!
DSTMFNAME S 46
D M_WIDEOPEN C 511
D FD S 10I 0
D LINE S 512A
D MSG S 52A
C EVAL STMFNAME = '/QSYS.LIB/QTEMP.LIB/FOO.USRSPC'
C EVAL FD = open(STMFNAME:
C O_CREAT + O_WRONLY + O_TRUNC:
C M_WIDEOPEN)
C EVAL LINE = 'I like Spam!'
C CAT X'0D25':0 LINE
C CALLP write(FD: %ADDR(LINE): %LEN(%TRIMR(LINE)))
C CALLP close(FD)
C EVAL FD = open(STMFNAME:
C O_RDONLY)
C CLEAR LEN 5 0
C EVAL LEN = read(FD: %ADDR(LINE): 512)
C CALLP close(FD)
C EVAL FD = open(STMFNAME:
C O_CREAT + O_WRONLY + O_TRUNC:
C M_WIDEOPEN)
C EVAL LINE = %TRIM(LINE)
C + 'Model Railroading is Fun'
C CAT X'0D25':0 LINE
C CALLP write(FD: %ADDR(LINE): %LEN(%TRIMR(LINE)))
C CALLP close(FD)
C SETON LR
As an Amazon Associate we earn from qualifying purchases.
This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].
Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.