MVSFORUMS.com Forum Index MVSFORUMS.com
A Community of and for MVS Professionals
 
 FAQFAQ   SearchSearch   Quick Manuals   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Opening the dummy file giving File staus 35

 
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Application Programming
View previous topic :: View next topic  
Author Message
sivafdms
Intermediate


Joined: 29 May 2007
Posts: 165
Topics: 77

PostPosted: Mon Oct 06, 2008 4:17 am    Post subject: Opening the dummy file giving File staus 35 Reply with quote

Hi

We have a program that is used by two jobs, in first job it uses all 6 vsam files. In second job it uses only 3 out of 6 vsam files and other 3 files are marked as dummy in second job.

All the Vsam files which are used in the pgm use alternate index also.

when the pgm try to open the dummy files in second job it is giving the file status 35. I am not sure why it giving this status. Can we use DD DUMMY for vsam files which are not required.

Please help me

Thanks,
Siva
Back to top
View user's profile Send private message
jhandu
Beginner


Joined: 01 Oct 2008
Posts: 6
Topics: 0
Location: India

PostPosted: Mon Oct 06, 2008 5:49 am    Post subject: Reply with quote

Did you use AMP=AMORG in the DD?
Back to top
View user's profile Send private message
sivafdms
Intermediate


Joined: 29 May 2007
Posts: 165
Topics: 77

PostPosted: Mon Oct 06, 2008 6:57 am    Post subject: Reply with quote

Hi jhandu

We do not use AMP=AMORG in the DD?

We just coded like this

//SYS041DD DD DUMMY
//SYS041EE DD DUMMY
//SYS041FF DD DUMMY

Thanks,
Siva
Back to top
View user's profile Send private message
jhandu
Beginner


Joined: 01 Oct 2008
Posts: 6
Topics: 0
Location: India

PostPosted: Mon Oct 06, 2008 7:46 am    Post subject: Reply with quote

Try using it. What happens?

Code:

//SYS041DD DD DUMMY,AMP=AMORG
//SYS041EE DD DUMMY,AMP=AMORG
//SYS041FF DD DUMMY,AMP=AMORG
Back to top
View user's profile Send private message
sivafdms
Intermediate


Joined: 29 May 2007
Posts: 165
Topics: 77

PostPosted: Wed Oct 08, 2008 3:16 am    Post subject: Reply with quote

Hi Jhandu,

I tried the above way.. but hard luck,its giving same error.
Do i need to change anything ..

Thanks,
Siva
Back to top
View user's profile Send private message
callanand
Beginner


Joined: 12 Jun 2007
Posts: 23
Topics: 2

PostPosted: Wed Oct 08, 2008 8:17 am    Post subject: Reply with quote

Hi Sivafdms, Just to check have you used OPTIONAL parameter in the select statement. Would you post your select statement, JCL and error message in the forum so that we can get a better picture of the situation.
Thanks
Back to top
View user's profile Send private message
jsharon1248
Intermediate


Joined: 08 Aug 2007
Posts: 291
Topics: 2
Location: Chicago

PostPosted: Wed Oct 08, 2008 8:28 am    Post subject: Reply with quote

You can add the OPTIONAL clause to the SELECT statement for each of the VSAM datasets, and then code the JCL without the DD's for the VSAM datasets.

Code:

Optional files are files that are not necessarily present each time the program is
run. You can define files opened in INPUT, I-O, or OUTPUT mode as optional by
defining them with the SELECT OPTIONAL phrase in the FILE-CONTROL section of
your program.
Back to top
View user's profile Send private message
sivafdms
Intermediate


Joined: 29 May 2007
Posts: 165
Topics: 77

PostPosted: Tue Oct 14, 2008 10:44 pm    Post subject: Reply with quote

Hi callanand,

We don't have an optional parameter in select statement.
It is not giving an error messages while doing a JJSCAN but when i run the job it is giving file status as 35.

Thanks,
Siva
Back to top
View user's profile Send private message
jsharon1248
Intermediate


Joined: 08 Aug 2007
Posts: 291
Topics: 2
Location: Chicago

PostPosted: Wed Oct 15, 2008 9:20 am    Post subject: Reply with quote

I plugged a DD DUMMY into a step that uses a VSAM file and had no problems. I'm wondering if it has something to do with the AIX. Post the error messages so we can see exactly what's going on.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Application Programming All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


MVSFORUMS
Powered by phpBB © 2001, 2005 phpBB Group