IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

Creating Dynamic Output Dataset


IBM Mainframe Forums -> JCL & VSAM
Post new topic   Reply to topic
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
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: 2455
Location: Hampshire, UK

PostPosted: Thu Jun 21, 2012 12:55 pm
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

Moderator Emeritus


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

PostPosted: Thu Jun 21, 2012 6:32 pm
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
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

Moderator Emeritus


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

PostPosted: Thu Jun 21, 2012 8:09 pm
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
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

Moderator Emeritus


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

PostPosted: Fri Jun 22, 2012 2:13 am
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 View Bookmarks
All times are GMT + 6 Hours
Forum Index -> JCL & VSAM

 


Similar Topics
Topic Forum Replies
No new posts TRIM everything from input, output co... DFSORT/ICETOOL 1
No new posts Sortjoin and Search for a String and ... DFSORT/ICETOOL 1
No new posts FINDREP - Only first record from give... DFSORT/ICETOOL 3
No new posts Map Vols and Problem Dataset All Other Mainframe Topics 2
No new posts Using Dynamic file handler in the Fil... COBOL Programming 2
Search our Forums:

Back to Top