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

Senior Member


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

Senior Member


Joined: 07 Feb 2009
Posts: 1018
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 Converting Variable block file to Fix... bhavana yalavarthi DFSORT/ICETOOL 10 Tue May 16, 2017 2:20 pm
No new posts Getting error while opening a variabl... apandey1 COBOL Programming 5 Fri May 05, 2017 12:22 pm
No new posts Length of Tape file Mohan Kothakota JCL & VSAM 9 Thu Apr 20, 2017 10:24 pm
No new posts Dynamic split of files under groups sril.krishy DFSORT/ICETOOL 4 Mon Apr 17, 2017 1:09 pm
No new posts Sort Large record length cmsmoon DFSORT/ICETOOL 14 Tue Apr 11, 2017 5:49 pm


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