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
 

 

SYSDSN returnig ERROR PROCESSING REQUESTED DATASET

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> CLIST & REXX
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    Post subject: SYSDSN returnig ERROR PROCESSING REQUESTED DATASET
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

Moderator Team Head


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

PostPosted: Tue Nov 04, 2008 7:13 am    Post subject: Reply to: SYSDSN returnig ERROR PROCESSING REQUESTED DATASET
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    Post subject: Reply to: SYSDSN returnig ERROR PROCESSING REQUESTED DATASET
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: 8593
Location: Back in jolly old England

PostPosted: Tue Nov 04, 2008 12:10 pm    Post subject:
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    Post subject: Reply to: SYSDSN returnig ERROR PROCESSING REQUESTED DATASET
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    Post subject: Reply to: SYSDSN returnig ERROR PROCESSING REQUESTED DATASET
Reply with quote

http://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

Senior Member


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

PostPosted: Thu Nov 20, 2008 3:11 am    Post subject: Reply to: SYSDSN returnig ERROR PROCESSING REQUESTED DATASET
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: 401
Location: Mumbai

PostPosted: Thu Nov 20, 2008 4:19 am    Post subject: Reply to: SYSDSN returnig ERROR PROCESSING REQUESTED DATASET
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    IBMMAINFRAMES.com Support Forums -> CLIST & REXX All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts IDC2902I Error tzeche ABENDS & Debugging 2 Tue Mar 28, 2017 11:39 am
No new posts Unable to catalog a gdg dataset resid... Shovan JCL & VSAM 7 Fri Mar 24, 2017 2:24 pm
No new posts Want to pull the job log into a Mainf... Jishu Mukherjee Compuware & Other Tools 9 Tue Mar 21, 2017 4:48 pm
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


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