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
 

 

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

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> CICS
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    Post subject: How to protect first 3 bytes of an eight byte unprot field
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: 2422
Location: Netherlands, Amstelveen

PostPosted: Wed Jun 06, 2012 12:53 pm    Post subject:
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    Post subject:
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: 2502
Location: Atlanta, Georgia, USA

PostPosted: Wed Jun 06, 2012 8:51 pm    Post subject: Reply to: How to protect first 3 bytes of an eight byte unpr
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    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 INVALID FIELD OR CONSTANT IN SORTOF ?? Ron Klop DFSORT/ICETOOL 8 Wed Jan 11, 2017 3:44 pm
No new posts Performing arithmetic on input field zh_lad DFSORT/ICETOOL 31 Tue Dec 06, 2016 8:04 pm
No new posts Add PD field from 2nd file to PD in 1st Sushant Garje DFSORT/ICETOOL 6 Thu Dec 01, 2016 4:32 pm
No new posts How to split the records using the am... vnktrrd DFSORT/ICETOOL 24 Fri Oct 28, 2016 7:33 pm
No new posts Sort records based on numeric field. Alks SYNCSORT 2 Wed Oct 19, 2016 10:14 pm


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