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
 
How to differentiate batch and online programs in Natural

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> Java & MQSeries
View previous topic :: :: View next topic  
Author Message
varmamainframes

New User


Joined: 13 Mar 2005
Posts: 1
Location: hyderabad

PostPosted: Wed Mar 08, 2006 5:48 pm    Post subject: How to differentiate batch and online programs in Natural
Reply with quote

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
View user's profile Send private message

toughmetals

New User


Joined: 10 Jan 2006
Posts: 14
Location: India

PostPosted: Wed Mar 08, 2006 7:02 pm    Post subject:
Reply with quote

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
View user's profile Send private message
rahul_mf
Warnings : 1

New User


Joined: 13 Sep 2005
Posts: 13

PostPosted: Tue Apr 04, 2006 8:19 am    Post subject: Regarding Online and Batch programs in Natural
Reply with quote

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
View user's profile Send private message
vasanthanc

New User


Joined: 01 Apr 2005
Posts: 58

PostPosted: Tue Apr 04, 2006 8:32 pm    Post subject:
Reply with quote

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
View user's profile Send private message
rahul_mf
Warnings : 1

New User


Joined: 13 Sep 2005
Posts: 13

PostPosted: Fri Apr 07, 2006 8:44 am    Post subject: Re: How to differentiate batch and online programs in Natura
Reply with quote

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
View user's profile Send private message
steve

New User


Joined: 24 Mar 2005
Posts: 16
Location: Long Island

PostPosted: Fri Apr 07, 2006 11:16 am    Post subject: Re: How to differentiate batch and online programs in Natura
Reply with quote

I guess INCLUDE's cant be compiled independently..

Lemmi know if Im wrong..
Back to top
View user's profile Send private message
rahul_mf
Warnings : 1

New User


Joined: 13 Sep 2005
Posts: 13

PostPosted: Fri Apr 07, 2006 1:37 pm    Post subject: Re: How to differentiate batch and online programs in Natura
Reply with quote

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
View user's profile Send private message
vasanthanc

New User


Joined: 01 Apr 2005
Posts: 58

PostPosted: Fri Apr 07, 2006 1:47 pm    Post subject:
Reply with quote

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
View user's profile Send private message
rahul_mf
Warnings : 1

New User


Joined: 13 Sep 2005
Posts: 13

PostPosted: Fri Apr 07, 2006 2:46 pm    Post subject: Re: How to differentiate batch and online programs in Natura
Reply with quote

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
View user's profile Send private message
rahul_mf
Warnings : 1

New User


Joined: 13 Sep 2005
Posts: 13

PostPosted: Fri Apr 07, 2006 2:57 pm    Post subject: Difference between Internal & External map in Natural?
Reply with quote

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
View user's profile Send private message
vasanthanc

New User


Joined: 01 Apr 2005
Posts: 58

PostPosted: Fri Apr 07, 2006 6:02 pm    Post subject:
Reply with quote

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
View user's profile Send private message
rahul_mf
Warnings : 1

New User


Joined: 13 Sep 2005
Posts: 13

PostPosted: Mon Apr 10, 2006 8:51 am    Post subject: Re: How to differentiate batch and online programs in Natura
Reply with quote

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
View user's profile Send private message
rahul_mf
Warnings : 1

New User


Joined: 13 Sep 2005
Posts: 13

PostPosted: Mon Apr 10, 2006 9:38 am    Post subject: Difference between Helpmap and Helproutine in Natural?
Reply with quote

Hi all,

One more --> What is the difference between Helpmap and Helproutine in Natural?

Rahul
Back to top
View user's profile Send private message
steve

New User


Joined: 24 Mar 2005
Posts: 16
Location: Long Island

PostPosted: Wed Apr 12, 2006 1:01 pm    Post subject:
Reply with quote

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
View user's profile Send private message
monasu1998

Active User


Joined: 23 Dec 2005
Posts: 176
Location: India

PostPosted: Wed Apr 26, 2006 4:56 pm    Post subject: Re: How to differentiate batch and online programs in Natura
Reply with quote

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
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 CA Intertest Batch 555shanth CA Products 0 Tue Nov 28, 2017 11:10 am
No new posts How to query MAXGENS of an existing P... Chuchulo Hatyzak JCL & VSAM 4 Wed Nov 22, 2017 10:23 pm
No new posts pointers on using USS and C programs. Pedro All Other Mainframe Topics 0 Wed Oct 04, 2017 4:38 am
No new posts Accessing CICS tran with map from JCL... navdeepaggarwal CICS 5 Tue Oct 03, 2017 6:15 pm
No new posts Generate public-private key in batch ... vasanthz All Other Mainframe Topics 6 Fri Sep 15, 2017 9:20 am

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