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

How to handle "occur=" parameter in DFHMDF


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

New User


Joined: 24 Mar 2008
Posts: 29
Location: mumbai

PostPosted: Mon Jul 07, 2008 5:32 pm
Reply with quote

how to handle occur= parameter specified in DFHMDF macro. any relevant code sample
Back to top
View user's profile Send private message
Craq Giegerich

Senior Member


Joined: 19 May 2007
Posts: 1512
Location: Virginia, USA

PostPosted: Mon Jul 07, 2008 6:15 pm
Reply with quote

I would suggest creating a map with an occurs= and looking at the output of the assembly process.
Back to top
View user's profile Send private message
rajeshwarch

New User


Joined: 24 Mar 2008
Posts: 29
Location: mumbai

PostPosted: Tue Jul 08, 2008 1:55 pm
Reply with quote

ok, thanks
Back to top
View user's profile Send private message
raghav08
Currently Banned

New User


Joined: 03 Jun 2008
Posts: 94
Location: Bangalore

PostPosted: Wed Jul 09, 2008 5:35 pm
Reply with quote

Hi,

In the macro

XXXXXX DFHMDF POS=(10,1),
LENGTH=2,OCCURS=5
ATTRB=(NORM,UNPROT,FSET),....

Then in the corresponding symbolic map should be,

03 XXXXXXG OCCURS 5 TIMES.
05 XXXXXXL COMP PIC S9(4).
05 XXXXXXF PICTURE X.
05 FILLER REDEFINES XXXXXXF.
07 XXXXXXA PICTURE X.
05 XXXXXXI PIC X(2).

In the screen this field will take 10 displacement (2*5=10) as contious but with different names.

In the application program, we can use a subscript (WS-I) to refer each fileld as below,
:
MOVE 1 TO WS-I
PERFORM UNTIL WS-I > 5
MOVE XXXXXXI(WS-I) TO WS-VAR(WS-I)
ADD 1 TO WS-I
END-PERFORM.
:

I hope this will help.
Back to top
View user's profile Send private message
rajeshwarch

New User


Joined: 24 Mar 2008
Posts: 29
Location: mumbai

PostPosted: Wed Jul 09, 2008 6:43 pm
Reply with quote

1..I have to display that 10 similar fileds of x(7) with one blank in each.
like xxxxxxx xxxxxxx xxxxxxx xxxxxxx

2.. In program depends on some condition i have to set some fileds has protected. To dynamically set this how we r move dfhbmprot to that attribute field.
Back to top
View user's profile Send private message
Craq Giegerich

Senior Member


Joined: 19 May 2007
Posts: 1512
Location: Virginia, USA

PostPosted: Wed Jul 09, 2008 7:01 pm
Reply with quote

rajeshwarch wrote:
1..I have to display that 10 similar fileds of x(7) with one blank in each.
like xxxxxxx xxxxxxx xxxxxxx xxxxxxx

2.. In program depends on some condition i have to set some fileds has protected. To dynamically set this how we r move dfhbmprot to that attribute field.

You will get a blank between each occurrence for the attribute byte.
Back to top
View user's profile Send private message
Earl Haigh

Active User


Joined: 25 Jul 2006
Posts: 475

PostPosted: Wed Jul 09, 2008 7:03 pm
Reply with quote

1..I have to display that 10 similar fileds of x(7) with one blank in each.
like xxxxxxx xxxxxxx xxxxxxx xxxxxxx

2.. In program depends on some condition i have to set some fileds has protected. To dynamically set this how we r move dfhbmprot to that attribute field.


ARE THESE QUESTIONS OR STATEMENTS icon_question.gif icon_question.gif
Back to top
View user's profile Send private message
raghav08
Currently Banned

New User


Joined: 03 Jun 2008
Posts: 94
Location: Bangalore

PostPosted: Thu Jul 10, 2008 11:12 am
Reply with quote

Hi,

1) For your requirement, in the macro defination OCCURS=10 and LENGTH=07

2) In my previous post i have mentioned the symbolic map structure for the filelds.

If you observe "03 XXXXXXG OCCURS 5 TIMES." This is at LEVEL 03 item with OCCURS Clause. So this OCCURS is applicable for all subsidary fields also right...Means XXXXXXL,XXXXXXF,XXXXXXA and XXXXXXI all are having 5 displacements.

Suppose if you are referring First field XXXXXXI (1) then corresponding attribute filed is XXXXXXA(1)

3) So based on your application condition just move DFHBMPRO to the corresponding attribute field XXXXXXA(1/2/3/4/5)
Back to top
View user's profile Send private message
rajeshwarch

New User


Joined: 24 Mar 2008
Posts: 29
Location: mumbai

PostPosted: Thu Jul 10, 2008 12:47 pm
Reply with quote

THANKS RAI
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 PuTTY - "User is not a surrogate... IBM Tools 5
No new posts Using the Jobname parameter in a Qual... ABENDS & Debugging 1
No new posts Newbie Stuck on "Duplicate Datas... TSO/ISPF 5
No new posts Demand with DEADLINE TIME parameter CA Products 4
No new posts Option DYNALLOC second parameter. DFSORT/ICETOOL 11
Search our Forums:

Back to Top