Portal | IBM Manuals | Downloads | Products | Refer | Info | Programs | JCLs | Forum Rules*| Site Map | Mainframe CD 
IBMMAINFRAMES.com - IBM Mainframe Support Forums Index
 
Register
 
IBMMAINFRAMES.com - IBM Mainframe Support Forums Index FAQ Search Memberlist Usergroups Profile Log in to check your private messages Log in
 
Accept a value from SYSIN

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> NATURAL & MQSERIES
Author Message
rohit-natural

New User


Joined: 06 Jun 2006
Posts: 3

PostPosted: Tue Jun 06, 2006 11:33 am    Post subject: Accept a value from SYSIN
Reply with quote

Hi All
This is my first post at the forum. I am interested to know how do we accept values in a natural program from a JCL for a step that executes a Natural program. I am new to Natural. In Cobol we used to use ACCEPT statement for the same purpose.
Please help
Thanks in advance.
Rohit
Back to top
View user's profile Send private message
References
PostPosted: Tue Jun 06, 2006 11:33 am    Post subject: Re: Accept a value from SYSIN Reply with quote

vasanthanc

Active User


Joined: 01 Apr 2005
Posts: 59

PostPosted: Tue Jun 06, 2006 6:45 pm    Post subject:
Reply with quote

Hi Rohit

I dont know much about cobol. Can you please explain me in detail, what is your requirement? What value you want to pass from JCL to Natural?

Regards
Vasanth
Back to top
View user's profile Send private message
vasanthanc

Active User


Joined: 01 Apr 2005
Posts: 59

PostPosted: Tue Jun 06, 2006 6:48 pm    Post subject:
Reply with quote

I think ACCEPT is to take input from user in COBOL. Similarly in NATURAL you can use INPUT. INPUT stmt will read values from user in online programs. I have not tried passing values from JCL using SYSIN. But probably it will work for you.
Back to top
View user's profile Send private message
rohit-natural

New User


Joined: 06 Jun 2006
Posts: 3

PostPosted: Tue Jun 06, 2006 7:57 pm    Post subject:
Reply with quote

Thanks Vasanth
I tried using INPUT and it worked.
I was able to read the data from the JCL into the program.
Thanks A Lot
Looking forward for the same kind of guidance.
Regards
Rohit
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> NATURAL & MQSERIES All times are GMT + 6 Hours
Page 1 of 1