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

How to protect first 3 bytes of an eight byte unprot field


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

New User


Joined: 06 Jun 2012
Posts: 11
Location: India

PostPosted: Wed Jun 06, 2012 12:41 pm
Reply with quote

Hi,

i have an requirement like below:

> an account no field having length of 8 bytes on a map.
> If account is universal type then account no is of full 8 byte length.
> if account is non universal, then while sending the map the first 3bytes should be protected and remaining 5 bytes should be as unprotected. Also cursor should be present at 4th byte.

Please can any one look on this
Back to top
View user's profile Send private message
PeterHolland

Global Moderator


Joined: 27 Oct 2009
Posts: 2481
Location: Netherlands, Amstelveen

PostPosted: Wed Jun 06, 2012 12:53 pm
Reply with quote

Try this :

Redefine the 8 byte field in 2 fields (3 and 5 bytes).
Then do a dynamic modification of the attributes.
Back to top
View user's profile Send private message
Stefan

Active User


Joined: 12 Jan 2006
Posts: 110
Location: Germany

PostPosted: Wed Jun 06, 2012 2:37 pm
Reply with quote

You should modify the map definition and split the field in two separate fields. This gives you the flexibility to protect or unprotect the different parts of your account number as necessary with very little effort. In addition you can easily use different colors for the first field to indicate its protection mode. This would make the map more meaningful to the user. The positioning of the cursor would also be just a trivial matter.
Back to top
View user's profile Send private message
Bill O'Boyle

CICS Moderator


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

PostPosted: Wed Jun 06, 2012 8:51 pm
Reply with quote

Try inserting X'1DF0' in the first two-bytes and see if this (at least) ASKIP's positions one and two and we'll go from there.

I'm not an advocate of doing this and don't generally promote it....
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

 


Similar Topics
Topic Forum Replies
No new posts Data set Rec-Cnt and Byte-Cnt Testing & Performance 2
No new posts Replace Multiple Field values to Othe... DFSORT/ICETOOL 12
No new posts 10 byte RBA conversion DB2 2
No new posts 10 byte RBA conversion -non applicati... JCL & VSAM 1
No new posts Join 2 files according to one key field. JCL & VSAM 3
Search our Forums:

Back to Top