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

SYSDSN returnig ERROR PROCESSING REQUESTED DATASET


IBM Mainframe Forums -> CLIST & REXX
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
xsray

New User


Joined: 16 Sep 2008
Posts: 19
Location: illinois

PostPosted: Tue Nov 04, 2008 7:04 am
Reply with quote

I have a GDG base with 4 entries. When I try to test the 3rd entry with SYSDSN, it returns ERROR PROCESSING REQUESTED DATASET, and the same for the 4th.

Code:
QCPJNT.SPAP.AGENCY.FILE         
QCPJNT.SPAP.AGENCY.FILE.G0001V00
QCPJNT.SPAP.AGENCY.FILE.G0002V00
QCPJNT.SPAP.AGENCY.FILE.G0003V00
QCPJNT.SPAP.AGENCY.FILE.G0004V00

the first 2 are OK, but then it fails

Code:
INPUT='QCPJNT.SPAP.AGENCY.FILE.G0001V00'
OK                                     
INPUT='QCPJNT.SPAP.AGENCY.FILE.G0002V00'
OK                                     
INPUT='QCPJNT.SPAP.AGENCY.FILE.G0003V00'
ERROR PROCESSING REQUESTED DATASET
INPUT='QCPJNT.SPAP.AGENCY.FILE.G0004V00'
ERROR PROCESSING REQUESTED DATASET     

I have a loop in REXX to check for the existance of the gdg entries:

Code:
FORMAT:                                                   
 DO WHILE GEN < 31                                         
   IF GEN < 10 THEN                                       
     VDD2  = "'QCP"MODE".SPAP.AGENCY.FILE.G000"GEN"V00'"   
   IF GEN > 9 THEN                                         
     VDD2  = "'QCP"MODE".SPAP.AGENCY.FILE.G00"GEN"V00'"   
   SAY 'INPUT='VDD2            /* FORMATTED GDG  */       
   X = SYSDSN(VDD2)            /* TEST EXISTENCE OF GDG */
   SAY X                                                   
     IF X = 'OK' THEN                                     
       DO                                                 

I can't figure out why the first 2 gdg's are OK, and the next 2 gdg's are not

Edited: Please use BBcode when You post some code, that's rather readable...Anuj
Back to top
View user's profile Send private message
superk

Global Moderator


Joined: 26 Apr 2004
Posts: 4652
Location: Raleigh, NC, USA

PostPosted: Tue Nov 04, 2008 7:13 am
Reply with quote

Not on disk?
Archived/Migrated?
Back to top
View user's profile Send private message
xsray

New User


Joined: 16 Sep 2008
Posts: 19
Location: illinois

PostPosted: Tue Nov 04, 2008 7:27 am
Reply with quote

They are disk and not migrated.

I stepped thru with trace on and all the GDG's returned OK.
Back to top
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8797
Location: Welsh Wales

PostPosted: Tue Nov 04, 2008 12:10 pm
Reply with quote

I would imagine that the original run of the job caused the two generations to be recalled and when you ran the job for a second time the two generations had been recalled and were living on DASD rather than migrated.

However, as I may be wrong in my assumption, maybe you had better post the error messages and codes if it happens again.
Back to top
View user's profile Send private message
xsray

New User


Joined: 16 Sep 2008
Posts: 19
Location: illinois

PostPosted: Wed Nov 05, 2008 12:47 am
Reply with quote

I added a free statement and all seems to work

"EXECIO 0 DISKW INDD (FINIS" /* CLOSE INPUT FILE */
"FREE FI(INDD)"

Thanks for your help.
Back to top
View user's profile Send private message
parsesource

New User


Joined: 06 Feb 2006
Posts: 97

PostPosted: Wed Nov 19, 2008 11:21 pm
Reply with quote

publib.boulder.ibm.com/infocenter/zos/v1r9/index.jsp?topic=/com.ibm.zos.r9.ieab600/xexdynam.htm

maybe (JCL) DYNAMNBR is too low.
Back to top
View user's profile Send private message
Pedro

Global Moderator


Joined: 01 Sep 2006
Posts: 2547
Location: Silicon Valley

PostPosted: Thu Nov 20, 2008 3:11 am
Reply with quote

Your first post was incomplete as you did not indicated that EXECIO was being called.
Back to top
View user's profile Send private message
MBabu

Active User


Joined: 03 Aug 2008
Posts: 400
Location: Mumbai

PostPosted: Thu Nov 20, 2008 4:19 am
Reply with quote

opening the file for write (DISKW) will cause you to lose all your data unless the files are allocated DISP=MOD icon_eek.gif
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 -> CLIST & REXX

 


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 FINDREP - Only first record from give... DFSORT/ICETOOL 3
No new posts CLIST - Virtual storage allocation error CLIST & REXX 5
No new posts Map Vols and Problem Dataset All Other Mainframe Topics 2
Search our Forums:

Back to Top