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
 

 

Creating Dynamic Output Dataset

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

New User


Joined: 24 May 2008
Posts: 13
Location: India

PostPosted: Thu Jun 21, 2012 9:24 am    Post subject: Creating Dynamic Output Dataset
Reply with quote

Hi all,

I have an input dataset which is is GDG.

I have to NDM the file from one LPAR to other LPAR.

And the output dataset name is dynamic and depends on input dataset content.

O/p dataset name is XXX.SEEEE.DATE.TIME

XXX- application qualifier

EEEE - entry which is unique for every file and is present in input GDG
Header of input file ( 1 to 4 ) is the entry number.

I was able to generate date and time from system variables.

Only requirment is I need to generate entry number from input dataset to output file name when ever i am NDM the file.

Could this be done in JCL ? if not can some one suggest me with examples how to do it

Thanks,Sai
Back to top
View user's profile Send private message

Nic Clouston

Global Moderator


Joined: 10 May 2007
Posts: 1788
Location: UK

PostPosted: Thu Jun 21, 2012 12:55 pm    Post subject:
Reply with quote

No - it cannot be done in JCL. You can do it using JCL to specify a program to run that will fo it for you. This question is asked so many times that I am surprised that you did not get a hit when you searched the forum.
Back to top
View user's profile Send private message
dick scherrer

Site Director


Joined: 23 Nov 2006
Posts: 19270
Location: Inside the Matrix

PostPosted: Thu Jun 21, 2012 6:32 pm    Post subject:
Reply with quote

Hello,

Have you decided on which way you want do to this?

If you are stuck, post where you are having problems/doubts and someone should be able to clarify.
Back to top
View user's profile Send private message
GSaikrishna

New User


Joined: 24 May 2008
Posts: 13
Location: India

PostPosted: Thu Jun 21, 2012 8:00 pm    Post subject: Reply to: Creating Dynamic Output Dataset
Reply with quote

Thanks for the replies.

I am still thinking how to proceed.

I can create an easytrieve program and create the output file name.

Example

OUtputdataset has a record with XXX.SEEEE.DATE.TIME which i overirde every time my job runs.

Now how can I pass this record to NDM parm as OUTDSN value.
Back to top
View user's profile Send private message
dick scherrer

Site Director


Joined: 23 Nov 2006
Posts: 19270
Location: Inside the Matrix

PostPosted: Thu Jun 21, 2012 8:09 pm    Post subject:
Reply with quote

Hello,

One way would be to generate the entire NDM PROC with everything resolved and use this for the transfer.
Back to top
View user's profile Send private message
GSaikrishna

New User


Joined: 24 May 2008
Posts: 13
Location: India

PostPosted: Fri Jun 22, 2012 1:23 am    Post subject: Reply to: Creating Dynamic Output Dataset
Reply with quote

Thanks Dick.

I was able to generate whole NDM parm with my program and used it for transfer.


Thanks a lot
Back to top
View user's profile Send private message
dick scherrer

Site Director


Joined: 23 Nov 2006
Posts: 19270
Location: Inside the Matrix

PostPosted: Fri Jun 22, 2012 2:13 am    Post subject: Reply to: Creating Dynamic Output Dataset
Reply with quote

You're welcome - good to hear it is working and thank you for letting us know icon_smile.gif

d
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 Fileaid 2 commands instream work. In ... descann Compuware & Other Tools 2 Tue May 16, 2017 3:31 pm
No new posts find RACF group for access to spooled... jzhardy JCL & VSAM 1 Mon May 08, 2017 11:46 am
No new posts To find out size allocated to a seque... ashek15 JCL & VSAM 15 Thu Apr 27, 2017 9:42 am
No new posts Dynamic split of files under groups sril.krishy DFSORT/ICETOOL 4 Mon Apr 17, 2017 1:09 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
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us