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

XML Generate issue


IBM Mainframe Forums -> COBOL Programming
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
jzhardy

Active User


Joined: 31 Oct 2006
Posts: 138
Location: brisbane

PostPosted: Fri Oct 11, 2024 3:19 am
Reply with quote

I have the following data structure:

Code:
01 WS-XML-0174-00.  *>DATA
   03 WS-017400800-07  PIC X(0010).  *>STMT_PRD_START(NR)
   03 WS-017400800-08  PIC X(0010).  *>STMT_PRD_END(NR)
...
   03 WS-XML-0174-01.  *>ACC_DTLS
      05 WS-XML-0174-02-X  OCCURS 0 TO 99 TIMES DEPENDING ON WS-XML-0174-02-SIZE.  *>RP_DTLS
         07 WS-017400815-07  PIC X(0050).  *>RECV_PYE_NAME(R)
         07 WS-XML-0174-03.  *>CASE_DTLS
            09 WS-017400815-09  PIC X(0010).  *>C_DTL_ITM_DATE(R)
            09 WS-017400815-10  PIC X(0255).  *>C_DTL_ITM_DES(R)
      05 WS-XML-0174-05-X  OCCURS 0 TO 99 TIMES DEPENDING ON WS-XML-0174-05-SIZE.  *>PNAP
         07 WS-017400828-08  PIC X(0016).  *>STRT_PNAP_BAL(R)
...
      05 WS-XML-0174-07-X  OCCURS 0 TO 99 TIMES DEPENDING ON WS-XML-0174-07-SIZE.  *>NAP
         07 WS-017400830-08  PIC X(0016).  *>STRT_NAP_BAL(R)
...

   03 WS-XML-0174-11.  *>EC_DTLS
      05 WS-017400822-13  PIC X(0016).  *>EC_DTL_ITEM_BAL(NR)

when testing XML GENERATE with the following option :
Code:
SUPPRESS EVERY CONTENT WHEN ZERO OR SPACE
         EVERY ELEMENT WHEN ZERO OR SPACE


i get the following :

Code:
<DATA>
   <STMT_PRD_START>20240720</STMT_PRD_START>
...   
   <ACC_DTLS></ACC_DTLS>
...
</DATA>


It's not entirely clear to me why node <ACC_DTLS> is not being suppressed, whereas <EC_DTLS> is ...

any suggestions appreciated
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 -> COBOL Programming

 


Similar Topics
Topic Forum Replies
No new posts How to Login in to cics region and is... CICS 9
No new posts SFTP Issue - destination file record ... All Other Mainframe Topics 2
No new posts Generate random number from range of ... COBOL Programming 3
No new posts Issue after ISPF copy to Linklist Lib... TSO/ISPF 1
No new posts Facing ABM3 issue! CICS 3
Search our Forums:

Back to Top