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
 
Can I use SET Verb for Arrays

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> COBOL Programming
View previous topic :: :: View next topic  
Author Message
kiran

New User


Joined: 08 Apr 2004
Posts: 25
Location: hyd

PostPosted: Wed Apr 21, 2004 10:14 am    Post subject: Can I use SET Verb for Arrays
Reply with quote

Hi,
can we use SET verb for subscript like:
SET A [I] = 1;
or SET verb can only use for index.
Back to top
View user's profile Send private message

anuradha

Active User


Joined: 06 Jan 2004
Posts: 247
Location: Hyderabad

PostPosted: Wed Apr 21, 2004 11:08 am    Post subject: set verb
Reply with quote

hello kiran,

SET verb is not used to set some values as you said:

--------SET A [I] = 1; -----

SET verb ca be used for indexes or setting some condition variables to true or something like that.We can't set values like that.

Hope this helps.

Thanks
Anu
Back to top
View user's profile Send private message
jyothi_priya

New User


Joined: 09 Jan 2004
Posts: 10

PostPosted: Thu Sep 09, 2004 4:50 pm    Post subject: set verb
Reply with quote

Hi,

SET verb can be used to
Set a value to an Index
Increment / Decrement the Index value (UP BY / DOWN BY)
Set Address of a Variable to a pointer

Thank u,
Priya
Back to top
View user's profile Send private message
chandrasekhar

New User


Joined: 29 Sep 2004
Posts: 35
Location: bangalore

PostPosted: Fri Oct 08, 2004 8:10 pm    Post subject:
Reply with quote

I JUST WANT TO SAY THAT SET NOT ONLY USE FOR INDEX BUT IT CAN USE FOR DIFERENT PURPOSE ALSO

THANKS
Back to top
View user's profile Send private message
priya

Moderator


Joined: 24 Jul 2003
Posts: 568
Location: Bangalore

PostPosted: Fri Oct 08, 2004 9:05 pm    Post subject: Re
Reply with quote

Dear chandrasekhar,

Why yoou are shouting? Type in Small.

SET Verb

1. Places values associated with table elements into indexes
associated with index-names

2. Increments or decrements an occurrence number

3. Sets the status of an external switch to ON or OFF

4. Moves data to condition names to make conditions true
5. Sets USAGE IS POINTER data items to a data address.
Back to top
View user's profile Send private message
muthukumarapandian

New User


Joined: 08 Oct 2004
Posts: 42
Location: chennai, india

PostPosted: Sun Feb 27, 2005 6:25 pm    Post subject:
Reply with quote

Hi,

SET verb can be used only with indexed item.
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 -> COBOL Programming All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Logic of START verb with Read next sandeep kumar302 COBOL Programming 6 Tue Feb 04, 2014 12:21 pm
No new posts MIN-, MAX-function with arrays Auryn COBOL Programming 3 Fri Oct 25, 2013 7:45 pm
No new posts Calling sub program using CALL verb Ron Masters COBOL Programming 16 Fri Apr 06, 2012 4:37 pm
No new posts Need help in understanding the Move v... Himanshu Pant COBOL Programming 2 Fri Mar 30, 2012 2:47 pm
No new posts Capturing the EX value x'15' using IN... ragu.vst COBOL Programming 8 Mon Dec 19, 2011 10:12 pm

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