Home > Ask the AS/400 Experts > Questions & Answers > Working with *DTAQ in RPGLE
Ask The iSeries 400 Expert: Questions & Answers
EMAIL THIS

Working with *DTAQ in RPGLE

John Brandt EXPERT RESPONSE FROM: John Brandt

Pose a Question
Other iSeries 400 Categories
Meet all iSeries 400 Experts
Become an Expert for this site
>
QUESTION POSED ON: 20 March 2001

How can I send, or receive data from *DTAQ?


>

Working with Data Queues in RPGLE is much the same as working with them in any other language. The API's QSNDDTAQ and QRCVDTAQ are called to send and/or receive data in a single transaction.

Call 'QRCVDTAQ'
Parm DTQFUL 10A Data Queue/Library
Parm DTAQLEN 5S 0 Length of Entry
Parm DTAQDTA 128A Variable where the received data will be placed Parm DTAQDLY 5S 0 Length of time to wait for an entry to hit the queue

This is the minimum number of parameters for the Receive. There are additional parameters you must use if you are using a keyed data queue, or need other options.

Call 'QSNDDTAQ'
Parm DTQFUL 10A Data Queue/Library
Parm DTAQLEN 5S 0 Length of Entry
Parm DTAQDTA 128A Variable where the received data will be placed

These are only options for the Send. You can find more information and examples in the System API Programming manual. The RPG/LE example is in Appendix B, 8.3
Good luck,
John


Digg This!    StumbleUpon Toolbar StumbleUpon    Bookmark with Delicious Del.icio.us   



RELATED RESOURCES
2020software.com, trial software downloads for accounting software, ERP software, CRM software and business software systems
Search Bitpipe.com for the latest white papers and business webcasts
Whatis.com, the online computer dictionary



Search and Browse the Expert Answer Center
Search and browse more than 25,000 question and answer pairs from more than 250 TechTarget industry experts.
Browse our Expert Advice



iSeries Networking - Printing, Remote Access, TCP/IP
HomeNewsTopicsITKnowledge ExchangeTipsBlogsAsk the ExpertsMultimediaWhite PapersProducts
About Us  |  Contact Us  |  For Advertisers  |  For Business Partners  |  Site Index  |  RSS
SEARCH 
TechTarget provides technology professionals with the information they need to perform their jobs - from developing strategy, to making cost-effective purchase decisions and managing their organizations' technology projects - with its network of technology-specific websites, events and online magazines.

TechTarget Corporate Web Site  |  Media Kits  |  Site Map




All Rights Reserved, Copyright 1999 - 2009, TechTarget | Read our Privacy Policy
  TechTarget - The IT Media ROI Experts