Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

Abend ASRA Error

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

Active User


Joined: 29 Dec 2005
Posts: 181
Location: Canada

PostPosted: Thu Jan 05, 2006 1:02 pm    Post subject: Abend ASRA Error
Reply with quote

Hi,

My program is reading a dataset twice.
Once a normal read . The command used is

EXEC CICS
READ DATASET ('abFILE')
INTO (abRT-abRT)
LENGTH (LENGTH OF abRT-abRT)
RIDFLD (WS-ACCT-KEY)
RESP (RESPONSE-CODE)
END-EXEC.

And then with the 'Update' clause.
the command used is

EXEC CICS
READ DATASET ('ABFILE')
INTO (ABRT-ABRT)
LENGTH (LENGTH OF ABRT-ABRT)
RIDFLD (WS-ACCT-KEY)
UPDATE
RESP (RESPONSE-CODE)
END-EXEC.

I am tracking a field, and it fetches the correct data when Normal read is performed.But immediately after that when I am reading that with update mode, I am getting the invalid data in that field.

Please help.

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

khamarutheen

Active Member


Joined: 23 Aug 2005
Posts: 680
Location: NJ

PostPosted: Thu Jan 05, 2006 2:47 pm    Post subject: File reading
Reply with quote

Hi ap,

May b the file needs the refresh.. so i think if u refresh the file pointer then u may avoid such error.
Back to top
View user's profile Send private message
rajesh_1183

Active User


Joined: 24 Nov 2005
Posts: 121
Location: Tadepalligudem

PostPosted: Thu Jan 05, 2006 3:21 pm    Post subject:
Reply with quote

Hi,

I think we can read a record in cics only once..So next time if we try to read the same record again means it will show invalid data...so to avoid that, just move the record at the normal read time to a TDQ or TSQ..

Lets wait for a better answer...from any one...

Correct me if i am wrong...........

Thanks,
Rajesh
Back to top
View user's profile Send private message
ranjitbhingare

New User


Joined: 30 Nov 2005
Posts: 94
Location: PUNE

PostPosted: Mon Jan 30, 2006 7:02 pm    Post subject:
Reply with quote

Hi,

READ with UPDATE opetion should be used to REWRITE or DELETE From a Dataset and not just to READ the Record.
So I would suggest that just check the logic.........

THanks & Regads,

Ranjit....
Back to top
View user's profile Send private message
ramk

New User


Joined: 01 Apr 2005
Posts: 2

PostPosted: Sat Feb 04, 2006 4:25 pm    Post subject: Re: Abend ASRA Error
Reply with quote

Dear,

I thing this data exception error. wrong input data you updating VSAM dataset.
By
K.Ramanathan
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 Need help with below DB2 error ashek15 DB2 3 Sat Mar 18, 2017 5:56 am
No new posts FINDREP Syntax Error seahawk789 DFSORT/ICETOOL 4 Thu Mar 09, 2017 10:11 pm
No new posts INVOKE WEBSERVICE error danik56 CICS 11 Thu Mar 09, 2017 11:52 am
No new posts IMS region inactive - User abend code... gthmrj IMS DB/DC 5 Tue Mar 07, 2017 12:29 pm
No new posts Row not found Sql error GaganGarg DB2 7 Tue Mar 07, 2017 6:29 am


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us