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 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: 75
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

Senior Member


Joined: 07 Feb 2009
Posts: 1047
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: 2504
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

Senior Member


Joined: 07 Feb 2009
Posts: 1047
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: 2504
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

Senior Member


Joined: 07 Feb 2009
Posts: 1047
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 Moving values to a variable of copybo... Vignesh Sid COBOL Programming 6 Wed Sep 06, 2017 1:04 pm
This topic is locked: you cannot edit posts or make replies. Selecting two copybooks of different ... Vignesh Sid COBOL Programming 8 Tue Sep 05, 2017 7:28 pm
No new posts Updating the Trailer count in variabl... satheshbabur DFSORT/ICETOOL 6 Wed Aug 30, 2017 9:49 pm
No new posts Can we limit length in concatenation ... balaji81_k DB2 7 Tue Aug 22, 2017 2:50 am
No new posts Move from Comp3 variable to Edited Va... sreekusr COBOL Programming 8 Thu Aug 10, 2017 4:20 pm

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