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

Dynamic Attribute Change in IMS DC


IBM Mainframe Forums -> IMS DB/DC
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
abhinav343

New User


Joined: 28 May 2007
Posts: 5
Location: punjab

PostPosted: Tue May 26, 2009 10:03 pm
Reply with quote

Sandy,

Could you please confirm my understanding on this:

In IMS-DC, usually with each MOD- variable ,we define
an attribute variable e.g.
01 MOD-VAR1-ATTR PIC S9(4) COMP.
01 MOD-VAR1 PIC X(5).

This has to be defined in your output message structure. Make sure that your output message length is increased if you are adding anything. In MFS the MOD variable must have ATTR=YES specified in message field definition. Using your logic you can move predefined values to the attribute variable to change the attribute dynamically (very much similar to CICS attribute handling)..


Example:

Set up an 01 level named attribute-byte-values in working storage. You will then define the attribute bytes as 05 levels - here are a couple:

05 protect-alpha pic 9(4) comp value 226.
05 unprotect-numeric-mod pic 9(4) comp value 211.
05 unprotect-alpha-mod-curs pic 9(5) comp value 49347.
05 unprotect-num-hi-mod-curs pic 9(5) comp value 49371.


Now if you want MOD-VAR1 to be protected :

MOVE protect-alpha to MOD-VAR1-ATTR .

Please correct me. Also how do you get values 226 or 211 etc for different attribute types?

Thanks,
Back to top
View user's profile Send private message
dominickim

New User


Joined: 28 Feb 2007
Posts: 65
Location: NS, CA

PostPosted: Fri May 29, 2009 4:55 am
Reply with quote

Hello abhinav343,

I am not a Sandy but I'd say that your basic understanding is correct and please refer link below in order to make another attribute values.

publibz.boulder.ibm.com/cgi-bin/bookmgr_OS390/BOOKS/DFSP20F3/2.4.2.6?SHELF=&DT=20020906094838&CASE=

Thanks,
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 -> IMS DB/DC

 


Similar Topics
Topic Forum Replies
No new posts Using Dynamic file handler in the Fil... COBOL Programming 2
No new posts 3270 personal communications. Can't c... TSO/ISPF 2
No new posts JCL Dynamic System Symbols JCL & VSAM 3
No new posts SELECT from data change table DB2 5
No new posts Synctool-dynamic split job for varyin... JCL & VSAM 7
Search our Forums:

Back to Top