IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

Abend ASRA Error


IBM Mainframe Forums -> CICS
Post new topic   Reply to topic
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
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: 677
Location: NJ

PostPosted: Thu Jan 05, 2006 2:47 pm
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
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
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
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 View Bookmarks
All times are GMT + 6 Hours
Forum Index -> CICS

 


Similar Topics
Topic Forum Replies
No new posts Error to read log with rexx CLIST & REXX 11
No new posts Error when install DB2 DB2 2
No new posts CLIST - Virtual storage allocation error CLIST & REXX 5
No new posts ISAM and abend S03B JCL & VSAM 10
No new posts Error while running web tool kit REXX... CLIST & REXX 5
Search our Forums:

Back to Top