× 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.


  • Subject: Re: RCVF Question (since I never used it before)
  • From: "Jim Franz" <jfranz@xxxxxxxxxxxx>
  • Date: Fri, 2 Mar 2001 07:16:31 -0500

> 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 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.