AS/400-Data area and dataq

620 pts.
Tags:
AS/400
  1. What are the main difference between DTAARA and DTAQ? I know the below differences, is any other differences is there? The ength of data area is 1024 char and datlaq is 64,512 char. We can't initialize an variables at the time of declaration of a data Queue but we can initialize data area.
  2. I have pgma, pgmb and pgmc. In pgma- using data area,dataq and call to pgmb. In pgmb-it's reciving dataarea, dataq and again call to pgmc. In pgmc- is it receive again?
Please help,
1

Answer Wiki

Thanks. We'll let you know when a new response is added.

I removed my answer


Discuss This Question: 4  Replies

 
There was an error processing your information. Please try again later.
Thanks. We'll let you know when a new response is added.
Send me notifications when members answer or reply to this question.
  • hunshabbir7
    You can thing of a data area as a place independent of any application where you can place some data. Data can only be of 1024 byte long. Whereas data queue is a queue data structure where you can insert and remove data. You can retrieve data from a data queue in FIFO, LIFO or Keyed sequence. Follow this useful link.

    2,900 pointsBadges:
    report
  • chowas400
    Is DATAQ permanent? (user defined data area is permanent and system defined dataareas are temporary  .is it right?)

    2. I have pgma,pgmb and pgmc
    In pgma- using data area,dataq and call to pgmb,
    In pgmb-it's reciving dataarea, dataq and again call to pgmc
    In pgmc- is it receive again?
    620 pointsBadges:
    report
  • philpl1jb

    Objects created in libraries exist until they are deleted or the library is deleted.

    Objects created in QTEMP will only be visible to a single job and will cease to exist when that job ends.

    The LOCAL DATA AREA is a 1024 byte Data area that is automatically created for each job.  It is part of that job and it is only visible to that job and ceases to exist when that job ends. 

    54,090 pointsBadges:
    report
  • philip499
    think of a data area as a 1 record file. You can update the contents in either a CL or RPG program.
    Data Queues are like a messaging system and can contain many entries. Data processed in 1 program can be added (ie. maybe a sales transaction created by an interactive program) and these entries are read by another program (ie maybe a batch program that doesn't end until the interactive program sends an end-of-process indicator.)  In this example you could have 20 people adding from their interactive jobs and the 1 batch program doing the background work.
    35 pointsBadges:
    report

Forgot Password

No problem! Submit your e-mail address below. We'll send you an e-mail containing your password.

Your password has been sent to:

To follow this tag...

There was an error processing your information. Please try again later.

Thanks! We'll email you when relevant content is added and updated.

Following

Share this item with your network: