Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
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
 
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: 2445
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: 2504
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
This topic is locked: you cannot edit posts or make replies. Incrementing current time field by 30... arunsoods DFSORT/ICETOOL 11 Thu Oct 26, 2017 3:22 pm
No new posts Copy 4 byte of data from the last rec... arunsoods DFSORT/ICETOOL 9 Fri Oct 06, 2017 12:15 pm
No new posts sort records based on length exceeds ... maxsubrat DFSORT/ICETOOL 7 Wed Oct 04, 2017 4:48 pm
No new posts Partial color change of a field in CI... waseem0424 CICS 5 Fri Sep 29, 2017 7:56 pm
No new posts Error in SQL-PLIST3 'Above value tru... rikdeb DB2 4 Wed Sep 06, 2017 1:34 pm

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us