Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

Change the partition integer dynamically in COBOL DB2 pgm

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> DB2
View previous topic :: :: View next topic  
Author Message
shrinivasabharathi_b

New User


Joined: 04 Nov 2008
Posts: 11
Location: Chennai

PostPosted: Thu Nov 13, 2008 11:46 am    Post subject: Change the partition integer dynamically in COBOL DB2 pgm
Reply with quote

EXEC SQL
LOCK TABLE WRKSHT PART integer IN EXCLUSIVE MODE
END-EXEC

Is there a way to change the partition integer dynamically in COBOL DB2 program?
Back to top
View user's profile Send private message

dbzTHEdinosauer

Global Moderator


Joined: 20 Oct 2006
Posts: 6966
Location: porcelain throne

PostPosted: Thu Nov 13, 2008 1:05 pm    Post subject:
Reply with quote

in db2 you do not 'change' anything, you UPDATE or ALTER. Try using those words in your searches.
Back to top
View user's profile Send private message
shrinivasabharathi_b

New User


Joined: 04 Nov 2008
Posts: 11
Location: Chennai

PostPosted: Thu Nov 13, 2008 1:13 pm    Post subject:
Reply with quote

I need to get the exclusive lock for 50 partitions in a table as shown below.

Part1:
EXEC SQL .
LOCK TABLE WRKSHT PART 1 IN EXCLUSIVE MODE
END-EXEC

Part2:
EXEC SQL
LOCK TABLE WRKSHT PART 2 IN EXCLUSIVE MODE
END-EXEC

--
--
--

Part50:
EXEC SQL
LOCK TABLE WRKSHT PART 50 IN EXCLUSIVE MODE
END-EXEC


Is there any possibility of using the working storage variable in the place of partition number or
Is there a way to give ranges.
for ex: 1 to 7, 7 to 15....
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 -> DB2 All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Fail to change physical VSAM filename... jacobdng CICS 6 Fri Jan 20, 2017 12:36 pm
This topic is locked: you cannot edit posts or make replies. Full Time COBOL Software Development ... shally Mainframe Jobs 0 Fri Jan 20, 2017 5:24 am
This topic is locked: you cannot edit posts or make replies. COBOL Software Development Lead at Fi... shally Mainframe Jobs 0 Fri Jan 20, 2017 5:21 am
No new posts Executing OO COBOL program invoking J... Virendra Shambharkar COBOL Programming 2 Tue Jan 10, 2017 6:37 pm
No new posts OO COBOL compile error Virendra Shambharkar COBOL Programming 3 Tue Jan 10, 2017 6:05 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us