IBM Mainframe Forum Index
 
Register
 
IBM Mainframe Forum Index Mainframe: Search Log in to check your private messages Log in
 

Can we give dynamic length calcualtion for a Map variable


IBM Mainframe Forums -> CICS
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
cmsmoon

New User


Joined: 17 Jun 2010
Posts: 75
Location: Chennai

PostPosted: Mon Jun 10, 2013 2:20 pm
Reply with quote

Hi Friends,

I have requirement to get the length value from map dynamically..

For example :

TBL tye : ________ ( 8 char )

TBL name: ________________ ( 16 char)

Intiallay i defined as "TBL name" length is 16.

when TBL type is AGE,it allow the TBL name just 2 char from front.remaining should be stopper field
Back to top
View user's profile Send private message
prino

Senior Member


Joined: 07 Feb 2009
Posts: 1226
Location: Vilnius, Lithuania

PostPosted: Mon Jun 10, 2013 3:05 pm
Reply with quote

You cannot. Just use the facilities offered by whatever language you're using to to check that chars 3-16 are blank.
Back to top
View user's profile Send private message
Bill O'Boyle

CICS Moderator


Joined: 14 Jan 2008
Posts: 2504
Location: Atlanta, Georgia, USA

PostPosted: Tue Jun 11, 2013 12:13 am
Reply with quote

Insert a X'1DF0' at the necessary position in the target map-field, such as the 3rd-position (limits keyable value to two positions). X'1D' is a stopper-byte and X'F0' represents an ASKIP,NORM attribute-byte (which is DFHBMASK, found in copybook DFHBMSCA).

Somewhat offbeat, but it does work....
Back to top
View user's profile Send private message
prino

Senior Member


Joined: 07 Feb 2009
Posts: 1226
Location: Vilnius, Lithuania

PostPosted: Tue Jun 11, 2013 12:17 am
Reply with quote

Bill O'Boyle wrote:
Insert a X'1DF0' at the necessary position in the target map-field, such as the 3rd-position. X'1D' is a stopper-byte and X'F0' represents an ASKIP,NORM attribute-byte.

Somewhat offbeat, but it does work....

And will probably screw up the formatting of the rest of the screen. Also, it requires an "ENTER" between entering the "TBL type" and further processing, to set up this further field, where most users would probably TAB to it.
Back to top
View user's profile Send private message
Bill O'Boyle

CICS Moderator


Joined: 14 Jan 2008
Posts: 2504
Location: Atlanta, Georgia, USA

PostPosted: Tue Jun 11, 2013 12:19 am
Reply with quote

Prino,

Actually, when I was coding, I used this technique quite a bit and the map alignment/formatting was OK.
Back to top
View user's profile Send private message
prino

Senior Member


Joined: 07 Feb 2009
Posts: 1226
Location: Vilnius, Lithuania

PostPosted: Tue Jun 11, 2013 12:45 am
Reply with quote

I know I tried (AD 1994-ish) this type of messing around to display multi-color error messages, but due to the fact that CICS/BMS attribute bytes are removed from the stream, maps would always come out in very (un)funny shapes and sizes.

However, as I don't readily have access to CICS (FanDeZhi's CICS has been kaputt for months) I cannot verify this behaviour now.
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 -> CICS

 

Search our Forum:

Similar Topics
Topic Forum Replies
No new posts FILE STATUS - 39 ON VARIABLE LENGTH V... COBOL Programming 1
No new posts BMS map length field greater than zero CICS 3
No new posts AFRREBLK - Dynamic DSN IBM Tools 9
No new posts Unable to display comp variable COBOL Programming 4
No new posts Group selective VB records - Trailer ... DFSORT/ICETOOL 16

Back to Top