View previous topic :: View next topic
|
Author |
Message |
kbmk
New User
Joined: 27 Sep 2007 Posts: 24 Location: Chennai
|
|
|
|
Hi,
I want to know how to create a dataset dynamically through natural. |
|
Back to top |
|
|
ofer71
Global Moderator
Joined: 27 Dec 2005 Posts: 2358 Location: Israel
|
|
|
|
Please clarify your request: Do you want to allocate a new dataset under TSO from within Natural?
O. |
|
Back to top |
|
|
kbmk
New User
Joined: 27 Sep 2007 Posts: 24 Location: Chennai
|
|
|
|
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 |
|
|
ofer71
Global Moderator
Joined: 27 Dec 2005 Posts: 2358 Location: Israel
|
|
|
|
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 |
|
|
kbmk
New User
Joined: 27 Sep 2007 Posts: 24 Location: Chennai
|
|
|
|
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 |
|
|
ofer71
Global Moderator
Joined: 27 Dec 2005 Posts: 2358 Location: Israel
|
|
|
|
- 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 |
|
|
|