ROLLBACK



IBM's hierarchical database management system with a Database Manager (IMS DB) and a Transaction Manager(IMS DC)

ROLLBACK

Postby mfdigger » Thu Feb 05, 2015 9:43 pm

Hi,

I'm trying to use SETS and ROLS IMS functions in my program and when I'm trying to compile the program, I'm facing the compilation error as

"SETS" was not defined as a data-name

Not sure why its not recognizing the SETS or ROLS as IMS functions.

Could someone plz let me know if I have to add any statement to identify these functions in the COBOL program

 CALL "CBLTDLI"  USING  SETS     
                       IOPCB.
mfdigger
 
Posts: 1
Joined: Thu Feb 05, 2015 9:39 pm
Has thanked: 0 time
Been thanked: 0 time

Re: ROLLBACK

Postby Akatsukami » Thu Feb 05, 2015 11:24 pm

Since it is not enclosed in quotes, SETS is interpreted as a variable, not a literal.
"You have sat too long for any good you have been doing lately ... Depart, I say; and let us have done with you. In the name of God, go!" -- what I say to a junior programmer at least once a day
User avatar
Akatsukami
Global moderator
 
Posts: 1058
Joined: Sat Oct 16, 2010 2:31 am
Location: Bloomington, IL
Has thanked: 6 times
Been thanked: 51 times

Re: ROLLBACK

Postby BillyBoyo » Fri Feb 06, 2015 3:59 am

If it needs to be a literal, you'd have to supply BY CONTENT or BY VALUE.

If BY CONTENT is going to work, then make that parameter an identifier with a VALUE of "SETS". Best find out how long it needs to be.
BillyBoyo
Global moderator
 
Posts: 3804
Joined: Tue Jan 25, 2011 12:02 am
Has thanked: 22 times
Been thanked: 265 times


Return to IMS DB/DC

 


  • Related topics
    Replies
    Views
    Last post