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

CICS aid keys to get a field protected


IBM Mainframe Forums -> HomeWorks & Requests
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
Amit_Singh47

New User


Joined: 15 May 2013
Posts: 22
Location: India

PostPosted: Wed May 15, 2013 1:30 pm
Reply with quote

Hi All,

In a CICS map, i am trying to get a field protected. The code is the following:

PERFORM ATTR-CNT TIMES
MOVE WHITE-PROT-BRI-MDT TO
ACTIONA ( COM-TOTAL-RECORDS + 1 )
END-PERFORM

Here, ATTR-CNT and COM-TOTAL-RECORDS are simple variables.

However, this is not working as the attribute is not getting protected.

Please help.
Back to top
View user's profile Send private message
Stefan

Active User


Joined: 12 Jan 2006
Posts: 110
Location: Germany

PostPosted: Wed May 15, 2013 2:28 pm
Reply with quote

Your PERFORM loop moves the attribute byte in every iteration to the same occurrence of ACTIONA. Instead you should set the indexing variable to a meaningful starting value and increase it per iteration by 1.
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 -> HomeWorks & Requests

 


Similar Topics
Topic Forum Replies
No new posts Using API Gateway from CICS program CICS 0
No new posts Replace Multiple Field values to Othe... DFSORT/ICETOOL 12
No new posts Calling an Open C library function in... CICS 1
No new posts How to 'Ping' a CICS region in JCL CICS 2
No new posts Parallelization in CICS to reduce res... CICS 4
Search our Forums:

Back to Top