Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Profile Log in to check your private messages Log in
 
Using more TWA Size in CICS

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> CICS
View previous topic :: :: View next topic  
Author Message
rashmi.ranjan75

New User


Joined: 20 Feb 2006
Posts: 34

PostPosted: Tue Apr 18, 2006 9:32 pm    Post subject: Using more TWA Size in CICS
Reply with quote

Hi,

the twasize is defined as 500 for this transaction
What will heppen if i execute this code

char * ptwa = new char(1000);
exec cics address twa(ptwa)

As per my understanding this command should abend.

Please let me know if i am correct.

Regards
Rashmi
Back to top
View user's profile Send private message

mallikiran

New User


Joined: 07 Sep 2005
Posts: 49

PostPosted: Wed Apr 19, 2006 3:24 pm    Post subject:
Reply with quote

EXEC CICS ADDRESS TWA returns the address of the TWA into a pointer and has nothing to do with the length of the TWA. If an attempt is made to write beyond the specified length (500 in this case), then you would get a storage violation and the task would abend with ASRA.[/quote]
Back to top
View user's profile Send private message
rashmi.ranjan75

New User


Joined: 20 Feb 2006
Posts: 34

PostPosted: Wed Apr 19, 2006 3:35 pm    Post subject:
Reply with quote

yes that's what i am trying to say, if i want to write more than 500 in the ptwa variable then it will give storage violation and abend.

Is it true? please correct me if i am wrong.
Back to top
View user's profile Send private message
mallikiran

New User


Joined: 07 Sep 2005
Posts: 49

PostPosted: Wed Apr 19, 2006 6:09 pm    Post subject:
Reply with quote

To be honest, I do not understand what the following line is trying to achieve:

char * ptwa = new char(1000);

If you could explain that, it would be helpful.

Thanks.
Back to top
View user's profile Send private message
rashmi.ranjan75

New User


Joined: 20 Feb 2006
Posts: 34

PostPosted: Wed Apr 19, 2006 6:16 pm    Post subject:
Reply with quote

sorry but that statement is like
char * ptwa;

only declaring a character pointer.

Regards
Rashmi
Back to top
View user's profile Send private message
rashmi.ranjan75

New User


Joined: 20 Feb 2006
Posts: 34

PostPosted: Wed Apr 19, 2006 6:24 pm    Post subject:
Reply with quote

may be i would just like to re write the scenario in more understandable way
twasize is defined as 500 for this transaction

char * ptwa;
char str1[1000];
copy 1000 characters to str1 variable;
exec cics address twa(ptwa);
strcpy(ptwa,str1);

now what will happen in this case.
Back to top
View user's profile Send private message
mallikiran

New User


Joined: 07 Sep 2005
Posts: 49

PostPosted: Wed Apr 19, 2006 8:46 pm    Post subject:
Reply with quote

This would be storage violation.

The task can abend with ASRA or may just proceed as though nothing wrong has happened. Whether the task abends or not depends on the area allocated to TWA when the task begins executing. In either case, you would see a message in the message log saying that a storage violation has occurred.
Back to top
View user's profile Send private message
rashmi.ranjan75

New User


Joined: 20 Feb 2006
Posts: 34

PostPosted: Wed Apr 19, 2006 8:48 pm    Post subject:
Reply with quote

thanks
Back to top
View user's profile Send private message
Devindra Pratap Singh

New User


Joined: 14 Jul 2007
Posts: 6
Location: Mumbai

PostPosted: Mon Mar 10, 2008 11:31 am    Post subject: TWA error
Reply with quote

I am facing following error during online transaction
DFHAC2206 01:20:47 CICSD Transaction XX01 failed with abend TWAL. Updates to
local recoverable resources backed out. "

It's during excecuting TWALENG & abend code is TWAL.

Please help me to understand meaning of same & how to resolve this.

Thanks,
Back to top
View user's profile Send private message
Bill O'Boyle

CICS Moderator


Joined: 14 Jan 2008
Posts: 2504
Location: Atlanta, Georgia, USA

PostPosted: Mon Mar 10, 2008 3:38 pm    Post subject: Using more TWA Size in CICS
Reply with quote

The TWASIZE is defined at the PCT (Transid) level in CEDA/RDO. Send a request to your CICS Tech Support and/or CICS Sys Prog to request an increase.

Regards,

Bill
Back to top
View user's profile Send private message
rajendra345
Warnings : 1

New User


Joined: 10 Mar 2008
Posts: 1
Location: hyderabad

PostPosted: Mon Mar 10, 2008 8:01 pm    Post subject: hi
Reply with quote

rashmi.ranjan75 wrote:
yes that's what i am trying to say, if i want to write more than 500 in the ptwa variable then it will give storage violation and abend.

Is it true? please correct me if i am wrong.
Back to top
View user's profile Send private message
Earl Haigh

Active User


Joined: 25 Jul 2006
Posts: 475

PostPosted: Tue Mar 11, 2008 1:12 am    Post subject:
Reply with quote

Yes, yes, yes, its true. DO NOT try to write more data in the TWA than is defined by the TWASIZE for the transaction, otherwise it will definitely
cause problems.

From you code snipets, looks like your code is Java or some type
of EcmaScript language.

Most of us COBOL folks on this forum don't understand.

Why can't you just ask your CICS Systems programmer about this ? The twasize can be increased to 1000 to meet your needs.
Back to top
View user's profile Send private message
enrico-sorichetti

Global Moderator


Joined: 14 Mar 2007
Posts: 10373
Location: italy

PostPosted: Tue Mar 11, 2008 1:17 am    Post subject: Reply to: Using more TWA Size in CICS
Reply with quote

Quote:
From you code snipets, looks like your code is Java or some type
of EcmaScript language.


thats just painful C
Back to top
View user's profile Send private message
Earl Haigh

Active User


Joined: 25 Jul 2006
Posts: 475

PostPosted: Thu Mar 13, 2008 3:07 am    Post subject:
Reply with quote

like I said, must of us COBOL folks (and some assembler) don't
speak the language, which does make it painful to answer a forum questoin about.
Back to top
View user's profile Send private message
vasanthkumarhb

Active User


Joined: 06 Sep 2007
Posts: 276
Location: Bang,iflex

PostPosted: Thu Mar 13, 2008 11:09 am    Post subject:
Reply with quote

Hi....


Quote:
char * ptwa;
char str1[1000];
copy 1000 characters to str1 variable;
exec cics address twa(ptwa);
strcpy(ptwa,str1);


Rashmi you are explaining the things in C-language or your work floor uses CICS with C-language. Please respond to this question. Because i want to know whether CICS is compatible with C-language too???
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> CICS All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Is CICS BMS logic on z/OS different ... Andi1982 CICS 2 Fri Dec 01, 2017 1:56 pm
No new posts How to get complete URL from CICS Con... mbattu CICS 1 Tue Nov 14, 2017 11:59 pm
No new posts Integrating CICS applications craig2020 CICS 1 Sun Oct 29, 2017 6:49 pm
No new posts ASP3 ABEND IN CICS Vedant CICS 0 Fri Oct 20, 2017 3:18 pm
No new posts Identifying Interfaces in CICS/mainframe Ashishpanpaliya CICS 5 Fri Oct 13, 2017 3:21 pm

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us