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
 

 

Can we give dynamic length calcualtion for a Map variable

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

New User


Joined: 17 Jun 2010
Posts: 72
Location: Chennai

PostPosted: Mon Jun 10, 2013 2:20 pm    Post subject: Can we give dynamic length calcualtion for a Map variable
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

Active Member


Joined: 07 Feb 2009
Posts: 997
Location: Oostende, Belgium

PostPosted: Mon Jun 10, 2013 3:05 pm    Post subject:
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: 2502
Location: Atlanta, Georgia, USA

PostPosted: Tue Jun 11, 2013 12:13 am    Post subject: Reply to: Can we give dynamic length calcualtion for a Map v
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

Active Member


Joined: 07 Feb 2009
Posts: 997
Location: Oostende, Belgium

PostPosted: Tue Jun 11, 2013 12:17 am    Post subject: Re: Reply to: Can we give dynamic length calcualtion for a M
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: 2502
Location: Atlanta, Georgia, USA

PostPosted: Tue Jun 11, 2013 12:19 am    Post subject: Reply to: Can we give dynamic length calcualtion for a Map v
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

Active Member


Joined: 07 Feb 2009
Posts: 997
Location: Oostende, Belgium

PostPosted: Tue Jun 11, 2013 12:45 am    Post subject:
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    IBMMAINFRAMES.com Support Forums -> CICS All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Count Trailing Spaces in variable str... Virendra Shambharkar SYNCSORT 10 Thu Feb 02, 2017 12:23 pm
No new posts Dynamic array request/response contai... Suja.Sai CICS 2 Tue Jan 24, 2017 11:37 am
No new posts REXX DB2: Dynamic allocation of DB2.D... BHAS CLIST & REXX 3 Mon Dec 19, 2016 8:26 pm
No new posts SQZ pipe delimited file with 1 column... Rick Silvers DFSORT/ICETOOL 2 Sun Nov 06, 2016 8:11 pm
No new posts Joinkeys operation when key1 and key2... Susanta DFSORT/ICETOOL 5 Wed Nov 02, 2016 5:35 pm


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