Thomas David Rivers wrote:
Hi Bill...

 Well - yes - you've hit the nail on the head - the routines are very
 confused because they are expecting to see VB-type records (with a BDW
 and RDW) and they are not.

 The program uses BSAM I/O.

 The issue here is that the program expects to not be directed to a PDS,
 and when that accidently happens - things go, as you mention,
 alarmingly wrong.

 What I'm looking for is some way for the program to say "Hey!  This
 isn't a sequentional VB file at all."   Instead of miserably blowing
 up.

|         TM    DCBRECFM,DCBRECU    Undefined format ?
|         JO    RECU                Branch if yes
|         TM    DCBRECFM,DCBRECV    Variable format ?
|         JO    RECV                Branch if yes
|* Handle Fixed Format Records
|RECF     DC    0H
|         .
|         .
|* Handle Variable Format Records
|RECV     DC    0H
|         .
|         .
|* Handle Undefined Format Records
|RECU     DC    0H
|         .
|         .

--
Edward E Jaffe
Phoenix Software International, Inc
5200 W Century Blvd, Suite 800
Los Angeles, CA 90045
310-338-0400 x318
[EMAIL PROTECTED]
http://www.phoenixsoftware.com/

----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [EMAIL PROTECTED] with the message: GET IBM-MAIN INFO
Search the archives at http://bama.ua.edu/archives/ibm-main.html

Reply via email to