View previous topic :: View next topic |
Author |
Message |
sivafdms Intermediate
Joined: 29 May 2007 Posts: 165 Topics: 77
|
Posted: Mon Oct 06, 2008 4:17 am Post subject: Opening the dummy file giving File staus 35 |
|
|
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 |
|
 |
jhandu Beginner
Joined: 01 Oct 2008 Posts: 6 Topics: 0 Location: India
|
Posted: Mon Oct 06, 2008 5:49 am Post subject: |
|
|
Did you use AMP=AMORG in the DD? |
|
Back to top |
|
 |
sivafdms Intermediate
Joined: 29 May 2007 Posts: 165 Topics: 77
|
Posted: Mon Oct 06, 2008 6:57 am Post subject: |
|
|
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 |
|
 |
jhandu Beginner
Joined: 01 Oct 2008 Posts: 6 Topics: 0 Location: India
|
Posted: Mon Oct 06, 2008 7:46 am Post subject: |
|
|
Try using it. What happens?
Code: |
//SYS041DD DD DUMMY,AMP=AMORG
//SYS041EE DD DUMMY,AMP=AMORG
//SYS041FF DD DUMMY,AMP=AMORG
|
|
|
Back to top |
|
 |
sivafdms Intermediate
Joined: 29 May 2007 Posts: 165 Topics: 77
|
Posted: Wed Oct 08, 2008 3:16 am Post subject: |
|
|
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 |
|
 |
callanand Beginner

Joined: 12 Jun 2007 Posts: 23 Topics: 2
|
Posted: Wed Oct 08, 2008 8:17 am Post subject: |
|
|
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 |
|
 |
jsharon1248 Intermediate
Joined: 08 Aug 2007 Posts: 291 Topics: 2 Location: Chicago
|
Posted: Wed Oct 08, 2008 8:28 am Post subject: |
|
|
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 |
|
 |
sivafdms Intermediate
Joined: 29 May 2007 Posts: 165 Topics: 77
|
Posted: Tue Oct 14, 2008 10:44 pm Post subject: |
|
|
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 |
|
 |
jsharon1248 Intermediate
Joined: 08 Aug 2007 Posts: 291 Topics: 2 Location: Chicago
|
Posted: Wed Oct 15, 2008 9:20 am Post subject: |
|
|
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 |
|
 |
|
|