Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Profile Log in to check your private messages Log in
 
symbolic parm - allocate dsn

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
View previous topic :: :: View next topic  
Author Message
krrp

New User


Joined: 23 Oct 2015
Posts: 12
Location: canada

PostPosted: Sat Oct 31, 2015 8:27 pm    Post subject: symbolic parm - allocate dsn
Reply with quote

Hi
I've a requirement to create an output dataset with processing date as qualifer which is in the input file.
Currently I use bpxwdyn within the cobol program to dynamically allocate dataset during runtime.

Is there another way to do it from JCL using Rexx? The problem with above is the dataset is cataloged even the job fails with an error, ex s0c7.

Thanks for your time

krrp
Back to top
View user's profile Send private message

Nic Clouston

Global Moderator


Joined: 10 May 2007
Posts: 1925
Location: UK

PostPosted: Sat Oct 31, 2015 9:56 pm    Post subject:
Reply with quote

Quote:
The problem with above is the dataset is cataloged even the job fails with an error

That is not a problem - you may need the dataset for problem determination. You can have an automatic clean-up by having a housekeeping step as the first step which will delete the dataset if it exists.
Back to top
View user's profile Send private message
krrp

New User


Joined: 23 Oct 2015
Posts: 12
Location: canada

PostPosted: Sun Nov 01, 2015 5:58 pm    Post subject:
Reply with quote

Nic, I meant problem because the created dataset will be picked up by downstream application online. The failed incomplete dataset will impact the downstream application as well.
Back to top
View user's profile Send private message
Nic Clouston

Global Moderator


Joined: 10 May 2007
Posts: 1925
Location: UK

PostPosted: Mon Nov 02, 2015 3:50 pm    Post subject:
Reply with quote

Then your scheduling is wrong. Downstream jobs requiring that dataset should wait until it is successfully created. That is one of the things that schedulers are for.
Back to top
View user's profile Send private message
Bill Woodger

DFSORT Moderator


Joined: 09 Mar 2011
Posts: 7314

PostPosted: Mon Nov 02, 2015 4:32 pm    Post subject: Reply to: symbolic parm - allocate dsn
Reply with quote

Have a look at the JCL Reference and see what DISP does.

As NicC says, if the JOB has failed, why is anything "downstream" running?
Back to top
View user's profile Send private message
Willy Jensen

Active User


Joined: 01 Sep 2015
Posts: 175
Location: Switzerland

PostPosted: Tue Nov 03, 2015 12:56 am    Post subject:
Reply with quote

If you are on z/OS 2.1 then you can use system symbols in JCL.
Back to top
View user's profile Send private message
krrp

New User


Joined: 23 Oct 2015
Posts: 12
Location: canada

PostPosted: Tue Nov 03, 2015 2:08 am    Post subject:
Reply with quote

Nic, Bill,

Like I said...it is an Online application which picks up the file not the downstream batch application.

Regards
krrp
Back to top
View user's profile Send private message
Willy Jensen

Active User


Joined: 01 Sep 2015
Posts: 175
Location: Switzerland

PostPosted: Tue Nov 03, 2015 2:30 am    Post subject:
Reply with quote

hm, make it into a 2 step process where step1 will create the data in a temp file and step2 will rename that to the final name if step1 completes rc 0 ?
Back to top
View user's profile Send private message
Bill Woodger

DFSORT Moderator


Joined: 09 Mar 2011
Posts: 7314

PostPosted: Tue Nov 03, 2015 3:01 am    Post subject: Reply to: symbolic parm - allocate dsn
Reply with quote

When you say the dataset is catalogued we assume you mean a PS dataset.

What are you reading that with, online?
Back to top
View user's profile Send private message
Rohit Umarjikar

Senior Member


Joined: 21 Sep 2010
Posts: 1819
Location: NY,USA

PostPosted: Tue Nov 03, 2015 3:10 am    Post subject:
Reply with quote

Why do you overlook Bill's advise on DISP, it looks like you are confused about what is happening and what do you want actually?
Back to top
View user's profile Send private message
Rohit Umarjikar

Senior Member


Joined: 21 Sep 2010
Posts: 1819
Location: NY,USA

PostPosted: Tue Nov 03, 2015 3:37 am    Post subject:
Reply with quote

Quote:
I meant problem because the created dataset will be picked up by downstream application online. The failed incomplete dataset will impact the downstream application as well.

If you don't want to answer my previous post then please chage it to create a GDG instead of PS file so that online would still be find with earlier GDG ( of cource, if your Business accepts that way) but DISP still needs to be (NEW, CATLG, DELETE) and not (NEW, CATLG, CATLG).
Back to top
View user's profile Send private message
Nic Clouston

Global Moderator


Joined: 10 May 2007
Posts: 1925
Location: UK

PostPosted: Tue Nov 03, 2015 2:09 pm    Post subject:
Reply with quote

You did not specify that it was an online program.
What is an online program doing creating a sequential file? Can you not initiate a batch job to create the file when the data is ready and make the downstream dependent on that?
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 -> JCL & VSAM All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
This topic is locked: you cannot edit posts or make replies. PS file data should be passed as symb... d_sarlie JCL & VSAM 15 Tue Oct 03, 2017 5:18 am
No new posts Where is output from PARM ABEXIT (SNA... packerm CA Products 3 Thu Sep 28, 2017 4:06 pm
No new posts IDCAMS Allocate & Repro pahiker JCL & VSAM 9 Thu Aug 24, 2017 7:28 pm
No new posts Paasing symbolic parameter to instrea... Robert Sample JCL & VSAM 2 Thu Jul 27, 2017 1:22 pm
No new posts LISTCAT on a dataset with symbolic pa... shreya19 JCL & VSAM 5 Fri Apr 07, 2017 5:43 pm

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us