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
 

 

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: 1715
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: 1715
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: 7232

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

New User


Joined: 01 Sep 2015
Posts: 96
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

New User


Joined: 01 Sep 2015
Posts: 96
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: 7232

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: 1610
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: 1610
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: 1715
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
No new posts Allocate dataset withour BLKSIZE Susanta CLIST & REXX 2 Thu Sep 22, 2016 11:51 am
No new posts Using 'parm' to vary SORTOUT record v... Sysaron DFSORT/ICETOOL 13 Wed Sep 07, 2016 9:24 pm
No new posts Symbolic Parameters in SYSIN DD state... madishpa DFSORT/ICETOOL 3 Mon Jun 27, 2016 6:23 pm
No new posts Copy a particular column based on PAR... brindhamohan DFSORT/ICETOOL 5 Wed May 11, 2016 8:49 am
No new posts Use of Parm in SORT Ambili S DFSORT/ICETOOL 2 Mon May 09, 2016 9:16 pm


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