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

ADRDSSU code scenario


IBM Mainframe Forums -> JCL & VSAM
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
Sanath sekhar Reddy N

New User


Joined: 31 Oct 2012
Posts: 30
Location: INDIA

PostPosted: Fri Jan 25, 2013 2:50 pm
Reply with quote

Can any one let me know the significance of the ADRDSSU.
I have one situation here in my project ,Iam using a vsam file in the program ,this vsam file is an online activity file which means will get updated via online cics transactions.My job is the batch job, we have got file status 21 during the execution which means the vsam file being used by online transactions may have got error due to incorrect sequential access of the key i.e key sequence might have altered.
So we have decided to use ADRDSSU -flash copy before running the program step.
Can you please any one tell me how to code ADRDSSU in this scenario
For eg below

Current abend scenario
Job1
step10 --- program step using vsam file X.

Proposed scenario to jcl changes
Job1
Step005--- Flash copy step (ADRDSSU) ??? How to code for this?
Step010--- program step using vsam file X.
(This scenario also may have chance of contention error with any other cics region using vsam file X -not sure-then the job is passing step005 with return code 4 and abending in step010 with VSAM file open error -status code 97)

Your suggestion will be very helpful for us at this point of time.

Regards
Sanath
Back to top
View user's profile Send private message
enrico-sorichetti

Superior Member


Joined: 14 Mar 2007
Posts: 10873
Location: italy

PostPosted: Fri Jan 25, 2013 2:55 pm
Reply with quote

Quote:
Your suggestion will be very helpful for us at this point of time.


do not access in <batch> a dataset <owned> by CICS icon_cool.gif
Back to top
View user's profile Send private message
Robert Sample

Global Moderator


Joined: 06 Jun 2008
Posts: 8697
Location: Dubuque, Iowa, USA

PostPosted: Fri Jan 25, 2013 5:00 pm
Reply with quote

I echo enrico's advice -- what you are doing is a very poor design and subject to all sorts of problems down the line.

However, if you think this is the way to go, look at the CONCURRENT option of the COPY verb of ADRDSSU in the manual. However, pay a LOT of attention to the potential problems, especially the potential of running out of storage, which you may well see.
Back to top
View user's profile Send private message
Pete Wilson

Active Member


Joined: 31 Dec 2009
Posts: 582
Location: London

PostPosted: Fri Feb 08, 2013 2:45 pm
Reply with quote

It is easy enough to copy the file with DFDSS (ADRDSSU) even if the file is open as long as the file SHAREOPTIONS are set correctly to allow it. But the error condition and why it's occurred needs to be resolved first I would have thought.

With DFDSS it uses dataset level Flashcopy by default, i.e.
FASTREP(PREFERRED) if you have Flashcopy licenced on the DASD box.

Depending how the file is allocated to CICS you may have to specify the SHARE and TOLERATE(ENQF) as well, although TOL(ENQF) isn't allowed if you're specifying CONCURRENT

e.g.

COPY ALLE ALLD(*) SHR TOL(ENQF) TGTA(SRC) -
DSN(INC(input.file)) -
RENAMEU(input.file,target.file)

NOTE: If the dataset has AIX's and you also want to copy those you need the SPHERE parameter, and on the RENAMEU you'd have to include source and target names for each AIX and PATH.
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 -> JCL & VSAM

 


Similar Topics
Topic Forum Replies
No new posts run rexx code with jcl CLIST & REXX 15
No new posts Compile rexx code with jcl CLIST & REXX 6
No new posts REXX code to expand copybook in a cob... CLIST & REXX 2
No new posts VSAM return code 23 - for a Random read COBOL Programming 4
No new posts Monitoring production job progress. N... JCL & VSAM 4
Search our Forums:

Back to Top