|
> I am reading a file in cl with the RCVF, I read one record which is 132 bytes long, I would like to substring this %SST, but I >do not know how to declare a var for the file record. I do know each position in the record that needs to be substringed. >Any help greatly appreciated. Unfortunately I have to use CL for this instead of RPG. The field name of the db record with an "and" sysmbol - like &FIELD (do a dspffd to see field names-even "flat" files have field names) I did the following by doing a list of users to outfile called s10users. The clp reads the file and restored all profiles that don't start with letter "Q" , by substring 1st character of field UPUPRF. hth - jim PGM DCLF FILE(BNCFIL/S10USERS) $TOP: RCVF MONMSG MSGID(CPF0000) EXEC(GOTO CMDLBL($END)) IF COND(%SST(&UPUPRF 1 1) *NE 'Q') THEN(DO) RSTUSRPRF DEV(TAP01) USRPRF(&UPUPRF) ENDOPT(*LEAVE) + ALWOBJDIF(*ALL) ENDDO GOTO CMDLBL($TOP) $END: ENDPGM ----- Original Message ----- From: <CYBRT1@aol.com> To: <RPG400-L@midrange.com> Sent: Friday, March 02, 2001 9:35 AM Subject: RCVF Question (since I never used it before) > > TIA, > Tom > +--- > | This is the RPG/400 Mailing List! > | To submit a new message, send your mail to RPG400-L@midrange.com. > | To subscribe to this list send email to RPG400-L-SUB@midrange.com. > | To unsubscribe from this list send email to RPG400-L-UNSUB@midrange.com. > | Questions should be directed to the list owner/operator: david@midrange.com > +--- +--- | This is the RPG/400 Mailing List! | To submit a new message, send your mail to RPG400-L@midrange.com. | To subscribe to this list send email to RPG400-L-SUB@midrange.com. | To unsubscribe from this list send email to RPG400-L-UNSUB@midrange.com. | Questions should be directed to the list owner/operator: david@midrange.com +---
As an Amazon Associate we earn from qualifying purchases.
This mailing list archive is Copyright 1997-2025 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.