View previous topic :: View next topic
|
Author |
Message |
varmamainframes
New User
Joined: 13 Mar 2005 Posts: 1 Location: hyderabad
|
|
|
|
How to differentiate batch and online programs in Natural and How to complie and run the batch and online programs In natural. |
|
Back to top |
|
|
toughmetals
New User
Joined: 10 Jan 2006 Posts: 14 Location: India
|
|
|
|
Ques: How to differentiate batch and online programs in Natural
Answer: Open the program If it uses Maps, or display and write statements(except write on workfile), then it is online.
If a program is using statement like "write workfile 1" it is purely made for batch.
You can create a single program that can run online and in batch at the same time.
Ques: How to compile and run the batch and online programs In natural
Answer: No difference. Stow it makes object code.
Thanks, Deeps |
|
Back to top |
|
|
rahul_mf Warnings : 1 New User
Joined: 13 Sep 2005 Posts: 13
|
|
|
|
Hi Deep,
You have written in your previous mail that "You can create a single program that can run online and in batch at the same time."
Could you please tell me how?
Waiting for your reply.
Rahul |
|
Back to top |
|
|
vasanthanc
New User
Joined: 01 Apr 2005 Posts: 58
|
|
|
|
Write a simple program say SAMPLE with out and write work file or read work file just to read contents of a database file and display the contents. STOW the program and execute it. Now it works as online program.
Write a simple JCL to execute the program SAMPLE. Execute the JCL. Now the same program SAMPLE will get executed in batch mode.
In the above example, program SAMPLE has been executed as online as well as batch program. |
|
Back to top |
|
|
rahul_mf Warnings : 1 New User
Joined: 13 Sep 2005 Posts: 13
|
|
|
|
Thanks vasanthanc . I need to ask one more thing in Natural/ADABAS.
Which object out of all the Natural objects cannot be compiled?
Waiting for reply.
Rahul |
|
Back to top |
|
|
steve
New User
Joined: 24 Mar 2005 Posts: 16 Location: Long Island
|
|
|
|
I guess INCLUDE's cant be compiled independently..
Lemmi know if Im wrong.. |
|
Back to top |
|
|
rahul_mf Warnings : 1 New User
Joined: 13 Sep 2005 Posts: 13
|
|
|
|
I am not sure about INCLUDE ( ,i.e., COPYCODE ) beacuse SUBPROGRAM is also one of the object and it cant be compiled independently.
Does anyone having any idea about this??? |
|
Back to top |
|
|
vasanthanc
New User
Joined: 01 Apr 2005 Posts: 58
|
|
|
|
You can compile a sub program independantly, but not include. As far as I know INCLUDE is the only object in NATURAL which cannot be compiled separately. |
|
Back to top |
|
|
rahul_mf Warnings : 1 New User
Joined: 13 Sep 2005 Posts: 13
|
|
|
|
I am sorry , you are right that SUBPROGRAM can be compiled independently. But INLCUDE ,i.e., actually COPYCODE is the object in NATURAL which cannot be compiled separately.
Can anyone tell me from where we can learn the basic concepts of ADABAS, i.e., inverted list , ISN , address convertor, how to access records etc. ??Is there any book of ADABAS for all such topics?? |
|
Back to top |
|
|
rahul_mf Warnings : 1 New User
Joined: 13 Sep 2005 Posts: 13
|
|
|
|
Hi all,
Can anyone tell me what is the difference between an Internal & External map in Natural.
The only difference I know is that Internal map is coded in the main program while External map is coded outside the main program as a separate module.
Any other differences???
Waiting for reply. |
|
Back to top |
|
|
vasanthanc
New User
Joined: 01 Apr 2005 Posts: 58
|
|
|
|
Internal map is the INPUT statement you use to get inputs from user. You will be writing this statement to get the input. You will specify variable name and position on screen where you want it to be placed.
External map is an object can be compiled individually. External map is not coded. It is designed using Map Editor. The editor does the coding for you. You just need to design the screen how it should look like and to link the variables. Then when you STOW the map is getting generated for you. You can test an external map without writing a program. You need to call the map in program using INPUT USING MAP statement.
PS: Rahul why dont you start new topic to ask new questions |
|
Back to top |
|
|
rahul_mf Warnings : 1 New User
Joined: 13 Sep 2005 Posts: 13
|
|
|
|
vasanthanc , I tried 2-3 times for starting a new topic with new subject but i dont know why it never came as a new topic , thats why I asked my doubts in the same topic. |
|
Back to top |
|
|
rahul_mf Warnings : 1 New User
Joined: 13 Sep 2005 Posts: 13
|
|
|
|
Hi all,
One more --> What is the difference between Helpmap and Helproutine in Natural?
Rahul |
|
Back to top |
|
|
steve
New User
Joined: 24 Mar 2005 Posts: 16 Location: Long Island
|
|
|
|
Helpmaps are created with the map editor. In principle, they are like any other maps, but when they are assigned as help, additional checks are performed to ensure their usability for help purposes.
Helproutines are created with the program editor. They may be used to implement complex and interactive help systems
Steve- |
|
Back to top |
|
|
monasu1998
Active User
Joined: 23 Dec 2005 Posts: 176 Location: India
|
|
|
|
Hi:
Natural programs those are having staatements like
READ WOK FILE or WRITE WORK FILE are batch as these are reading and writing to sequential files.
Online programs will be using maps. Programs does not have any WORK FILE statements are onoine program.
STOW command is used to compile and build object code for Natural programs.
CUADANAT program is used to execute batch Natural programs. |
|
Back to top |
|
|
|