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

Can I use SET Verb for Arrays


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

 


Similar Topics
Topic Forum Replies
No new posts Advice on Arrays PL/I & Assembler 10
This topic is locked: you cannot edit posts or make replies. regarding COBOL WRITE verb (VB File H... COBOL Programming 9
No new posts Logic of START verb with Read next COBOL Programming 6
No new posts MIN-, MAX-function with arrays COBOL Programming 3
No new posts Calling sub program using CALL verb COBOL Programming 16
Search our Forums:

Back to Top