IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

How to differentiate batch and online programs in Natural


IBM Mainframe Forums -> Java & MQSeries
Post new topic   Reply to topic
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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 View Bookmarks
All times are GMT + 6 Hours
Forum Index -> Java & MQSeries

 


Similar Topics
Topic Forum Replies
No new posts Run rexx in batch job CLIST & REXX 6
No new posts Excuting store procedure via JCL batch JCL & VSAM 1
No new posts SORT on detail record, then repeat he... DFSORT/ICETOOL 3
No new posts batch SFTP job using AOPBATCH unable ... All Other Mainframe Topics 7
No new posts Check if CICS is online in JCL CICS 10
Search our Forums:

Back to Top