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

Dynamic dataset creation


IBM Mainframe Forums -> Java & MQSeries
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
kbmk

New User


Joined: 27 Sep 2007
Posts: 24
Location: Chennai

PostPosted: Thu Oct 23, 2008 12:29 pm
Reply with quote

Hi,

I want to know how to create a dataset dynamically through natural.
Back to top
View user's profile Send private message
ofer71

Global Moderator


Joined: 27 Dec 2005
Posts: 2358
Location: Israel

PostPosted: Thu Oct 23, 2008 2:32 pm
Reply with quote

Please clarify your request: Do you want to allocate a new dataset under TSO from within Natural?

O.
Back to top
View user's profile Send private message
kbmk

New User


Joined: 27 Sep 2007
Posts: 24
Location: Chennai

PostPosted: Thu Oct 23, 2008 4:17 pm
Reply with quote

Yes. Based on my input, I have to create the output file. The input file contains the count. Based on that count, I have to create the output files. The last qualifier in the dataset will be differing.

If I am not still clear, please let me know. Thanks
Back to top
View user's profile Send private message
ofer71

Global Moderator


Joined: 27 Dec 2005
Posts: 2358
Location: Israel

PostPosted: Thu Oct 23, 2008 4:38 pm
Reply with quote

OK, the most safe & quick method to allocate a new dataset under TSO from within Natural is to use the supplied user-exit USR2021. With this user exit, you can allocate datasets dynamically and assign them to Natural work file.

Another method is to use the TSO command ALLOCATE. You can invoke TSO commands from within Natural by looking at the example in the examples library.

Third method is to invoke a REXX/CLIST to perform the allocation. This is pretty usefull if you want to perform other "TSO stuff" from within Natural. The best method I've used to invoke a REXX from within Natural is CALL IRXJCL.

O.
Back to top
View user's profile Send private message
kbmk

New User


Joined: 27 Sep 2007
Posts: 24
Location: Chennai

PostPosted: Fri Oct 24, 2008 4:51 pm
Reply with quote

Hi,

Could you tell me where the Examples library is? Also, I will check whether IRXJCL work in our shop.

I don't know about using user exit. do you have any documents detailing about it's use?

Thanks for your help.
Back to top
View user's profile Send private message
ofer71

Global Moderator


Joined: 27 Dec 2005
Posts: 2358
Location: Israel

PostPosted: Fri Oct 24, 2008 7:17 pm
Reply with quote

- To logon into the example(s) library(es), simply type MAINMENU ON, and follow the menu.
- IRXJCL is an integral part of TSO. If you have TSO, you can call IRXJCL.
- Natural's user exits are well documented in Software AG's fine manuals. Also, a documentation module is supplied with each user exit, as well as an example. Using SYSEXT you will be able to explore all the option. There is also a good help when you hit the PF1 key.

O.
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 -> Java & MQSeries

 


Similar Topics
Topic Forum Replies
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
No new posts Allocated cylinders of a dataset DB2 12
No new posts Sort First/last record of a subset th... DFSORT/ICETOOL 7
Search our Forums:

Back to Top