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
 
Dynamic dataset creation

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> Java & MQSeries
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    Post subject: Dynamic dataset creation
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: 2360
Location: Israel

PostPosted: Thu Oct 23, 2008 2:32 pm    Post subject:
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    Post subject: Reply to: Dynamic dataset creation
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: 2360
Location: Israel

PostPosted: Thu Oct 23, 2008 4:38 pm    Post subject:
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    Post subject: Reply to: Dynamic dataset creation
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: 2360
Location: Israel

PostPosted: Fri Oct 24, 2008 7:17 pm    Post subject:
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    IBMMAINFRAMES.com Support Forums -> Java & MQSeries All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts How could i share my personal dataset... James Halley TSO/ISPF 1 Fri Mar 23, 2018 9:41 pm
No new posts Creation of Datasets dynamically on t... Raghu M N DFSORT/ICETOOL 8 Fri Mar 16, 2018 12:56 am
This topic is locked: you cannot edit posts or make replies. How could i share my personal dataset... samenxia163 TSO/ISPF 1 Fri Mar 09, 2018 12:18 pm
No new posts Enterprise PL/I - dynamic allocation ... prino PL/I & Assembler 0 Mon Jan 29, 2018 10:17 pm
No new posts Where to get sample for processing RM... vice_versa PL/I & Assembler 2 Tue Jan 16, 2018 2:03 pm

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