| View previous topic :: View next topic |
| Author |
Message |
varmamainframes
Joined: 13 Mar 2005
Posts: 1
Location: hyderabad
|
| Posted: Wed Mar 08, 2006 5:48 pm Post subject: How to differentiate batch and online programs in Natural |
|
|
| 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
Joined: 10 Jan 2006
Posts: 14
Location: India
|
| Posted: Wed Mar 08, 2006 7:02 pm Post subject: |
|
|
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
Joined: 13 Sep 2005
Posts: 13
|
| Posted: Tue Apr 04, 2006 8:19 am Post subject: Regarding Online and Batch programs in Natural |
|
|
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
Joined: 01 Apr 2005
Posts: 59
|
| Posted: Tue Apr 04, 2006 8:32 pm Post subject: |
|
|
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
Joined: 13 Sep 2005
Posts: 13
|
| Posted: Fri Apr 07, 2006 8:44 am Post subject: Re: How to differentiate batch and online programs in Natura |
|
|
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
Joined: 24 Mar 2005
Posts: 19
Location: Long Island
|
| Posted: Fri Apr 07, 2006 11:16 am Post subject: Re: How to differentiate batch and online programs in Natura |
|
|
I guess INCLUDE's cant be compiled independently..
Lemmi know if Im wrong.. |
|
| Back to top |
|
rahul_mf
Joined: 13 Sep 2005
Posts: 13
|
| Posted: Fri Apr 07, 2006 1:37 pm Post subject: Re: How to differentiate batch and online programs in Natura |
|
|
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
Joined: 01 Apr 2005
Posts: 59
|
| Posted: Fri Apr 07, 2006 1:47 pm Post subject: |
|
|
| 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
Joined: 13 Sep 2005
Posts: 13
|
| Posted: Fri Apr 07, 2006 2:46 pm Post subject: Re: How to differentiate batch and online programs in Natura |
|
|
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
Joined: 13 Sep 2005
Posts: 13
|
| Posted: Fri Apr 07, 2006 2:57 pm Post subject: Difference between Internal & External map in Natural? |
|
|
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
Joined: 01 Apr 2005
Posts: 59
|
| Posted: Fri Apr 07, 2006 6:02 pm Post subject: |
|
|
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
Joined: 13 Sep 2005
Posts: 13
|
| Posted: Mon Apr 10, 2006 8:51 am Post subject: Re: How to differentiate batch and online programs in Natura |
|
|
| 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
Joined: 13 Sep 2005
Posts: 13
|
| Posted: Mon Apr 10, 2006 9:38 am Post subject: Difference between Helpmap and Helproutine in Natural? |
|
|
Hi all,
One more --> What is the difference between Helpmap and Helproutine in Natural?
Rahul |
|
| Back to top |
|
steve
Joined: 24 Mar 2005
Posts: 19
Location: Long Island
|
| Posted: Wed Apr 12, 2006 1:01 pm Post subject: |
|
|
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
Joined: 23 Dec 2005
Posts: 96
Location: Hyderabad
|
| Posted: Wed Apr 26, 2006 4:56 pm Post subject: Re: How to differentiate batch and online programs in Natura |
|
|
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 |
|
| |