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



If you want to use data queues to move transaction type data from one AS400
to another, configure the data queue on the remote AS400 as a DDM data
queue.

CRTDTAQ DTAQ(MYLIB/TOREMOTE)    
        TYPE(*DDM)              
        RMTDTAQ(RMTLIB/ONREMOTE)
        RMTLOCNAME(RMTSYSNM)

Provided you have SNA or *ANYNET configured and the DDM TCP/IP server job
running on the destination system.  It basically creates the socket
connection for you and you do not have to do that level of programming.  My
preferred way is to create local data queues to put entries into and use a
remote data queue to pull the entries.  That way if comm. is down, your
application can still write the data queue entries and your application does
not error out.  Then I use a cl program on the remote system to pull from
the DDM data queue and write to the local data queue.  I create the DDM data
queue in QTEMP

pgm &rmtsys
dcl &rmtsys *char 8
CRTDTAQ DTAQ(qtemp/&rmtsys)    
        TYPE(*DDM)              
        RMTDTAQ(RMTLIB/ONREMOTE)
        RMTLOCNAME(RMTSYSNM)

loop1:
call qrcvdtaq (parms go here)
monmsg (error processing goes here)
call qsnddtaq (parms go here)
monmsg (error processing goes here)
check for program end request
goto loop1
endpgm



-----Original Message-----
From: jmoreno@xxxxxxxxxxxxxxxx

Hello all,

Does anybody have sample code to do a "Sockets Connection" from an AS400 to
another AS400
and simply having *DTAQ entries flowing to the target AS400.

Is there any shorcuts to the learning curve ?

As an Amazon Associate we earn from qualifying purchases.

This thread ...


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.