Joined: 19 Feb 2005 Posts: 27 Location: hyderabad-ap-india
I have got few queries on DC concepts. can anyone help me with the answers?
1. When I switch from one transaction to another transaction, should the Message length be same? Ex: I am switching from transaction 01 to 02. The Io message area the I have defined in 01 is 1500 bytes and in 02 it is 1000 bytes. That means I am trying to switch from a greater length Io area to lesser length IO area. What will happen in this scenario?
2. Similarly, what will happen in vice versa switching?
3. What is the use of PURGE call? How to issue in the program and what are the ideal scenarios to issue?
Joined: 24 Nov 2005 Posts: 121 Location: Tadepalligudem
Ans for Q1)
As of my knowledge there is no need of mentioning equal lengths for Message areas...u can define 5 bytes of msg area in 1st tran. and can pass 10 bytes to 2nd tran. and similarly vice versa...
Ans for Q2)
u can find the answer from the above....
Joined: 13 Jun 2007 Posts: 826 Location: Wilmington, DE
It is much more efficient to send a short message. For instance, if someone enters bad data and your program editing catches it, you can send an error message telling the operator what is wrong and keep the screen displayed. You need only send the length of data that you need. Going from one transaction to another should be a short message unless you have data that you are sending. Are you manipulating the attribute bytes in your MFS?