| 
 | 
| I 
assume since you will be communicating non BSCEL since the sending system is not 
an AS400.  Basically, you config a line using CRTLINBSC.  You must 
also create a BSC controller and device.  Be sure the lined is set up for 
autoanswer *YES and the initial connection on the controller is set for 
*ANS.  when you compile your ICF file, you can specify the device name from 
above in the Acquire device parameter on the CRTICFF command.  If you do 
not, you will need to issue an the acquire command in your RPG program or you 
can specify the device name in the CL by using an OVRICFF command.  You 
must also use the ADDICFDEVE command to add an ICF device entry.  Here you 
can specify blocking, records lengths, block lengths.  The code is really 
petty simple, the program sits in a wait (read) of the ICF file.  The call 
comes in on the line, and the controller list is checked to see what controller 
is associated with the line.  It then looks up the device to see what ICF 
file is associated with it.  The ICF file is attached to the 
program.   You have to have the BSC receive program running at all 
times.  Create a SBS and create an autostart job that runs the receive 
program.  After you receive data, go back and wait for another 
call. Basically here is the hierarchy of 
BSC. LINE     Controller         
Device                 
ICF file                 
RPG program                     
Physical file If you 
were communicating with a system that support BSCEL (BSC Equivalency link), I 
believe you could actually EVOKE the remote program automatically, much like you 
can do with SNA/APPC communications. HTH. Carl J. Galgano 
 | 
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.