× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



Paul Jackson wrote:

I don't remember anyone mentioning this but you can also use the QUSRMBRD
API to get the information from within an RPG program.




Columnas . . : 1 71 Examen B/QCLPSRC
SEU==> FILESIZE
*************** Principio de datos ************************************
0001.00 PGM PARM(&NAME &LIBR &SIZE)
0002.00 DCL VAR(&NAME) TYPE(*CHAR) LEN(10)
0003.00 DCL VAR(&LIBR) TYPE(*CHAR) LEN(10)
0004.00 DCL VAR(&SIZE) TYPE(*DEC) LEN(10) VALUE(0)
0005.00 DCL VAR(&NBRCURRCD) TYPE(*DEC) LEN(10) VALUE(0)
0006.00 DCL VAR(&NBRDLTRCD) TYPE(*DEC) LEN(10) VALUE(0)
0007.00 RTVMBRD FILE(&LIBR/&NAME) NBRCURRCD(&NBRCURRCD) +
0008.00 NBRDLTRCD(&NBRDLTRCD)
0009.00 MONMSG MSGID(CPF9812) EXEC(DO) /* 'Archivo no esta' */
0010.00 CHGVAR VAR(&SIZE) VALUE(-1)
0011.00 RETURN
0012.00 ENDDO
0013.00 CHGVAR VAR(&SIZE) VALUE(&NBRCURRCD + &NBRDLTRCD)
0014.00 ENDPGM
****************** Fin de datos ***************************************





As an Amazon Associate we earn from qualifying purchases.

This thread ...

Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

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.