Page 1 of 1

ROLLBACK

PostPosted: Thu Feb 05, 2015 9:43 pm
by mfdigger
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.

Re: ROLLBACK

PostPosted: Thu Feb 05, 2015 11:24 pm
by Akatsukami
Since it is not enclosed in quotes, SETS is interpreted as a variable, not a literal.

Re: ROLLBACK

PostPosted: Fri Feb 06, 2015 3:59 am
by BillyBoyo
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.