ASG
IBM
Zystems
Cressida
Icon
Netflexity
 
  MQSeries.net
Search  Search       Tech Exchange      Education      Certifications      Library      Info Center      SupportPacs      LinkedIn  Search  Search                                                                   FAQ  FAQ   Usergroups  Usergroups
 
Register  ::  Log in Log in to check your private messages
 
RSS Feed - WebSphere MQ Support RSS Feed - Message Broker Support

MQSeries.net Forum Index » WebSphere Message Broker (ACE) Support » XML to copybook conversion - DFDL

Post new topic  Reply to topic
 XML to copybook conversion - DFDL « View previous topic :: View next topic » 
Author Message
Sam Uppu
PostPosted: Fri Jul 26, 2013 9:19 am    Post subject: XML to copybook conversion - DFDL Reply with quote

Yatiri

Joined: 11 Nov 2008
Posts: 610

Hi Guys,

I am converting webservice response to copy book. Mapping looks good, but not sure when i validate the copybook response with cobol copybook using RFHutil, I see below comments.


Quote:
***** RFHUtil formating error - Copy book offset exceeds data area
Copy book size 783, Data area size 783


I am using WMB V8.0.0.2. Size is same, but still getting formatting error.
Can you guys pls let me know what this error is for.

Thanks
Sam


Last edited by Sam Uppu on Fri Jul 26, 2013 10:30 am; edited 1 time in total
Back to top
View user's profile Send private message
lancelotlinc
PostPosted: Fri Jul 26, 2013 9:25 am    Post subject: Reply with quote

Jedi Knight

Joined: 22 Mar 2010
Posts: 4941
Location: Bloomington, IL USA

Are you using DFDL ? If so, post the DFDL format.
_________________
http://leanpub.com/IIB_Tips_and_Tricks
Save $20: Coupon Code: MQSERIES_READER
Back to top
View user's profile Send private message Send e-mail
Sam Uppu
PostPosted: Fri Jul 26, 2013 9:29 am    Post subject: Reply with quote

Yatiri

Joined: 11 Nov 2008
Posts: 610

Yes using DFDL.

Should I paste the entire DFDL?
Back to top
View user's profile Send private message
lancelotlinc
PostPosted: Fri Jul 26, 2013 9:48 am    Post subject: Reply with quote

Jedi Knight

Joined: 22 Mar 2010
Posts: 4941
Location: Bloomington, IL USA

Yes, in [c od e ] tags.
_________________
http://leanpub.com/IIB_Tips_and_Tricks
Save $20: Coupon Code: MQSERIES_READER
Back to top
View user's profile Send private message Send e-mail
Sam Uppu
PostPosted: Fri Jul 26, 2013 9:52 am    Post subject: Reply with quote

Yatiri

Joined: 11 Nov 2008
Posts: 610

Below is the DFDL

Code:
<?xml version="1.0" encoding="UTF-8"?><xsd:schema xmlns:dfdl="http://www.ogf.org/dfdl/dfdl-1.0/" xmlns:dfdlCobolFmt="http://www.ibm.com/dfdl/CobolDataDefinitionFormat" xmlns:ibmDfdlExtn="http://www.ibm.com/dfdl/extensions" xmlns:ibmSchExtn="http://www.ibm.com/schema/extensions" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
  <xsd:import namespace="http://www.ibm.com/dfdl/CobolDataDefinitionFormat" schemaLocation="IBMdefined/CobolDataDefinitionFormat.xsd"/>
  <xsd:complexType name="PDIROUTOUTPUT">
    <xsd:sequence>
      <xsd:element dfdl:lengthKind="implicit" name="PDIROUT_OUTPUT_AREA">
        <xsd:complexType>
          <xsd:sequence>
            <xsd:element dfdl:lengthKind="implicit" name="PDIROUT_OCCURS_IND_AREA">
              <xsd:complexType>
                <xsd:sequence>
                  <xsd:element default="0" dfdl:decimalSigned="yes" dfdl:length="9" dfdl:textNumberPattern="000000000+" ibmDfdlExtn:sampleValue="10" name="PDIROUT_ERR_OCCURS">
                    <xsd:annotation>
                      <xsd:documentation>PIC S9(9) display</xsd:documentation>
                    </xsd:annotation>
                    <xsd:simpleType>
                      <xsd:restriction base="dfdlCobolFmt:PICS9-Display-Zoned__int">
                        <xsd:minInclusive value="-999999999"/>
                        <xsd:maxInclusive value="999999999"/>
                      </xsd:restriction>
                    </xsd:simpleType>
                  </xsd:element>
                  <xsd:element default="0" dfdl:decimalSigned="yes" dfdl:length="9" dfdl:textNumberPattern="000000000+" ibmDfdlExtn:sampleValue="10" name="PDIROUT_MG_OCCURS">
                    <xsd:annotation>
                      <xsd:documentation>PIC S9(9) display</xsd:documentation>
                    </xsd:annotation>
                    <xsd:simpleType>
                      <xsd:restriction base="dfdlCobolFmt:PICS9-Display-Zoned__int">
                        <xsd:minInclusive value="-999999999"/>
                        <xsd:maxInclusive value="999999999"/>
                      </xsd:restriction>
                    </xsd:simpleType>
                  </xsd:element>
                  <xsd:element default="0" dfdl:decimalSigned="yes" dfdl:length="9" dfdl:textNumberPattern="000000000+" ibmDfdlExtn:sampleValue="10" name="PDIROUT_PCP_OCCURS">
                    <xsd:annotation>
                      <xsd:documentation>PIC S9(9) display</xsd:documentation>
                    </xsd:annotation>
                    <xsd:simpleType>
                      <xsd:restriction base="dfdlCobolFmt:PICS9-Display-Zoned__int">
                        <xsd:minInclusive value="-999999999"/>
                        <xsd:maxInclusive value="999999999"/>
                      </xsd:restriction>
                    </xsd:simpleType>
                  </xsd:element>
                  <xsd:element default="0" dfdl:decimalSigned="yes" dfdl:length="9" dfdl:textNumberPattern="000000000+" ibmDfdlExtn:sampleValue="10" name="PDIROUT_NWK_OCCURS">
                    <xsd:annotation>
                      <xsd:documentation>PIC S9(9) display</xsd:documentation>
                    </xsd:annotation>
                    <xsd:simpleType>
                      <xsd:restriction base="dfdlCobolFmt:PICS9-Display-Zoned__int">
                        <xsd:minInclusive value="-999999999"/>
                        <xsd:maxInclusive value="999999999"/>
                      </xsd:restriction>
                    </xsd:simpleType>
                  </xsd:element>
                </xsd:sequence>
              </xsd:complexType>
            </xsd:element>
            <xsd:element dfdl:lengthKind="implicit" dfdl:occursCount="{../PDIROUT_OCCURS_IND_AREA/PDIROUT_ERR_OCCURS}" dfdl:occursCountKind="expression" maxOccurs="25" minOccurs="0" name="PDIROUT_RETURN_FIELDS_AREA">
              <xsd:annotation>
                <xsd:appinfo source="http://www.wsadie.com/appinfo">
                  <dependingOn>//pdiroutoutput_pdirout__output__area_pdirout__occurs__ind__area;XSDModelGroupDefinition=1/XSDModelGroup/XSDParticle/PDIROUT_ERR_OCCURS;XSDElementDeclaration</dependingOn>
                </xsd:appinfo>
              </xsd:annotation>
              <xsd:complexType>
                <xsd:sequence>
                  <xsd:element default=" " dfdl:length="3" name="PDIROUT_RETURN_SEVERITY">
                    <xsd:annotation>
                      <xsd:appinfo source="http://www.wsadie.com/appinfo">
                        <initialValue kind="SPACE"/>
                      </xsd:appinfo>
                      <xsd:documentation>PIC X(3) display</xsd:documentation>
                    </xsd:annotation>
                    <xsd:simpleType>
                      <xsd:restriction base="dfdlCobolFmt:PICX__string">
                        <xsd:maxLength value="3"/>
                      </xsd:restriction>
                    </xsd:simpleType>
                  </xsd:element>
                  <xsd:element default=" " dfdl:length="24" name="PDIROUT_RETURN_CD">
                    <xsd:annotation>
                      <xsd:appinfo source="http://www.wsadie.com/appinfo">
                        <initialValue kind="SPACE"/>
                      </xsd:appinfo>
                      <xsd:documentation>PIC X(24) display</xsd:documentation>
                    </xsd:annotation>
                    <xsd:simpleType>
                      <xsd:restriction base="dfdlCobolFmt:PICX__string">
                        <xsd:maxLength value="24"/>
                      </xsd:restriction>
                    </xsd:simpleType>
                  </xsd:element>
                  <xsd:element default=" " dfdl:length="150" name="PDIROUT_RETURN_MSG">
                    <xsd:annotation>
                      <xsd:appinfo source="http://www.wsadie.com/appinfo">
                        <initialValue kind="SPACE"/>
                      </xsd:appinfo>
                      <xsd:documentation>PIC X(150) display</xsd:documentation>
                    </xsd:annotation>
                    <xsd:simpleType>
                      <xsd:restriction base="dfdlCobolFmt:PICX__string">
                        <xsd:maxLength value="150"/>
                      </xsd:restriction>
                    </xsd:simpleType>
                  </xsd:element>
                </xsd:sequence>
              </xsd:complexType>
            </xsd:element>
          </xsd:sequence>
        </xsd:complexType>
      </xsd:element>
      <xsd:element dfdl:lengthKind="implicit" name="PDIROUT_NM_ADDR_FIELDS_AREA">
        <xsd:complexType>
          <xsd:sequence>
            <xsd:element dfdl:lengthKind="implicit" name="PDIROUT_NAME_ADDRESS">
              <xsd:complexType>
                <xsd:sequence>
                  <xsd:element dfdl:lengthKind="implicit" name="PDIROUT_NAMES">
                    <xsd:complexType>
                      <xsd:sequence>
                        <xsd:element default=" " dfdl:length="50" name="PDIROUT_MED_GRP_ORG_NAME">
                          <xsd:annotation>
                            <xsd:appinfo source="http://www.wsadie.com/appinfo">
                              <initialValue kind="SPACE"/>
                            </xsd:appinfo>
                            <xsd:documentation>PIC X(50) display</xsd:documentation>
                          </xsd:annotation>
                          <xsd:simpleType>
                            <xsd:restriction base="dfdlCobolFmt:PICX__string">
                              <xsd:maxLength value="50"/>
                            </xsd:restriction>
                          </xsd:simpleType>
                        </xsd:element>
                        <xsd:element dfdl:lengthKind="implicit" name="PDIROUT_IND_NM">
                          <xsd:complexType>
                            <xsd:sequence>
                              <xsd:element default=" " dfdl:length="35" name="PDIROUT_PCP_LAST_NAME">
                                <xsd:annotation>
                                  <xsd:appinfo source="http://www.wsadie.com/appinfo">
                                    <initialValue kind="SPACE"/>
                                  </xsd:appinfo>
                                  <xsd:documentation>PIC X(35) display</xsd:documentation>
                                </xsd:annotation>
                                <xsd:simpleType>
                                  <xsd:restriction base="dfdlCobolFmt:PICX__string">
                                    <xsd:maxLength value="35"/>
                                  </xsd:restriction>
                                </xsd:simpleType>
                              </xsd:element>
                              <xsd:element default=" " dfdl:length="35" name="PDIROUT_PCP_FIRST_NAME">
                                <xsd:annotation>
                                  <xsd:appinfo source="http://www.wsadie.com/appinfo">
                                    <initialValue kind="SPACE"/>
                                  </xsd:appinfo>
                                  <xsd:documentation>PIC X(35) display</xsd:documentation>
                                </xsd:annotation>
                                <xsd:simpleType>
                                  <xsd:restriction base="dfdlCobolFmt:PICX__string">
                                    <xsd:maxLength value="35"/>
                                  </xsd:restriction>
                                </xsd:simpleType>
                              </xsd:element>
                              <xsd:element default=" " dfdl:length="10" name="PDIROUT_PCP_MIDDLE_NAME">
                                <xsd:annotation>
                                  <xsd:appinfo source="http://www.wsadie.com/appinfo">
                                    <initialValue kind="SPACE"/>
                                  </xsd:appinfo>
                                  <xsd:documentation>PIC X(10) display</xsd:documentation>
                                </xsd:annotation>
                                <xsd:simpleType>
                                  <xsd:restriction base="dfdlCobolFmt:PICX__string">
                                    <xsd:maxLength value="10"/>
                                  </xsd:restriction>
                                </xsd:simpleType>
                              </xsd:element>
                              <xsd:element default=" " dfdl:length="3" name="PDIROUT_PCP_SUFFIX">
                                <xsd:annotation>
                                  <xsd:appinfo source="http://www.wsadie.com/appinfo">
                                    <initialValue kind="SPACE"/>
                                  </xsd:appinfo>
                                  <xsd:documentation>PIC X(3) display</xsd:documentation>
                                </xsd:annotation>
                                <xsd:simpleType>
                                  <xsd:restriction base="dfdlCobolFmt:PICX__string">
                                    <xsd:maxLength value="3"/>
                                  </xsd:restriction>
                                </xsd:simpleType>
                              </xsd:element>
                              <xsd:element default=" " dfdl:length="8" name="PDIROUT_PCP_TITLE">
                                <xsd:annotation>
                                  <xsd:appinfo source="http://www.wsadie.com/appinfo">
                                    <initialValue kind="SPACE"/>
                                  </xsd:appinfo>
                                  <xsd:documentation>PIC X(8) display</xsd:documentation>
                                </xsd:annotation>
                                <xsd:simpleType>
                                  <xsd:restriction base="dfdlCobolFmt:PICX__string">
                                    <xsd:maxLength value="8"/>
                                  </xsd:restriction>
                                </xsd:simpleType>
                              </xsd:element>
                            </xsd:sequence>
                          </xsd:complexType>
                        </xsd:element>
                        <xsd:element default=" " dfdl:length="50" name="PDIROUT_GRP_ORG_NAME">
                          <xsd:annotation>
                            <xsd:appinfo source="http://www.wsadie.com/appinfo">
                              <initialValue kind="SPACE"/>
                            </xsd:appinfo>
                            <xsd:documentation>PIC X(50) display</xsd:documentation>
                          </xsd:annotation>
                          <xsd:simpleType>
                            <xsd:restriction base="dfdlCobolFmt:PICX__string">
                              <xsd:maxLength value="50"/>
                            </xsd:restriction>
                          </xsd:simpleType>
                        </xsd:element>
                      </xsd:sequence>
                    </xsd:complexType>
                  </xsd:element>
                  <xsd:element dfdl:lengthKind="implicit" dfdl:occursCount="{../../../PDIROUT_OUTPUT_AREA/PDIROUT_OCCURS_IND_AREA/PDIROUT_MG_OCCURS}" dfdl:occursCountKind="expression" maxOccurs="100" minOccurs="0" name="PDIROUT_MED_GROUP_ADDR">
                    <xsd:annotation>
                      <xsd:appinfo source="http://www.wsadie.com/appinfo">
                        <dependingOn>//pdiroutoutput_pdirout__output__area_pdirout__occurs__ind__area;XSDModelGroupDefinition=1/XSDModelGroup/XSDParticle=1/PDIROUT_MG_OCCURS;XSDElementDeclaration</dependingOn>
                      </xsd:appinfo>
                    </xsd:annotation>
                    <xsd:complexType>
                      <xsd:sequence>
                        <xsd:element default=" " dfdl:length="40" name="PDIROUT_MG_ADDR_LINE1">
                          <xsd:annotation>
                            <xsd:appinfo source="http://www.wsadie.com/appinfo">
                              <initialValue kind="SPACE"/>
                            </xsd:appinfo>
                            <xsd:documentation>PIC X(40) display</xsd:documentation>
                          </xsd:annotation>
                          <xsd:simpleType>
                            <xsd:restriction base="dfdlCobolFmt:PICX__string">
                              <xsd:maxLength value="40"/>
                            </xsd:restriction>
                          </xsd:simpleType>
                        </xsd:element>
                        <xsd:element default=" " dfdl:length="40" name="PDIROUT_MG_ADDR_LINE2">
                          <xsd:annotation>
                            <xsd:appinfo source="http://www.wsadie.com/appinfo">
                              <initialValue kind="SPACE"/>
                            </xsd:appinfo>
                            <xsd:documentation>PIC X(40) display</xsd:documentation>
                          </xsd:annotation>
                          <xsd:simpleType>
                            <xsd:restriction base="dfdlCobolFmt:PICX__string">
                              <xsd:maxLength value="40"/>
                            </xsd:restriction>
                          </xsd:simpleType>
                        </xsd:element>
                        <xsd:element default=" " dfdl:length="25" name="PDIROUT_MG_CITY">
                          <xsd:annotation>
                            <xsd:appinfo source="http://www.wsadie.com/appinfo">
                              <initialValue kind="SPACE"/>
                            </xsd:appinfo>
                            <xsd:documentation>PIC X(25) display</xsd:documentation>
                          </xsd:annotation>
                          <xsd:simpleType>
                            <xsd:restriction base="dfdlCobolFmt:PICX__string">
                              <xsd:maxLength value="25"/>
                            </xsd:restriction>
                          </xsd:simpleType>
                        </xsd:element>
                        <xsd:element default=" " dfdl:length="2" name="PDIROUT_MG_STATE">
                          <xsd:annotation>
                            <xsd:appinfo source="http://www.wsadie.com/appinfo">
                              <initialValue kind="SPACE"/>
                            </xsd:appinfo>
                            <xsd:documentation>PIC X(2) display</xsd:documentation>
                          </xsd:annotation>
                          <xsd:simpleType>
                            <xsd:restriction base="dfdlCobolFmt:PICX__string">
                              <xsd:maxLength value="2"/>
                            </xsd:restriction>
                          </xsd:simpleType>
                        </xsd:element>
                        <xsd:element default=" " dfdl:length="9" name="PDIROUT_MG_ZIP">
                          <xsd:annotation>
                            <xsd:appinfo source="http://www.wsadie.com/appinfo">
                              <initialValue kind="SPACE"/>
                            </xsd:appinfo>
                            <xsd:documentation>PIC X(9) display</xsd:documentation>
                          </xsd:annotation>
                          <xsd:simpleType>
                            <xsd:restriction base="dfdlCobolFmt:PICX__string">
                              <xsd:maxLength value="9"/>
                            </xsd:restriction>
                          </xsd:simpleType>
                        </xsd:element>
                        <xsd:element default=" " dfdl:length="10" name="PDIROUT_MG_PHONE">
                          <xsd:annotation>
                            <xsd:appinfo source="http://www.wsadie.com/appinfo">
                              <initialValue kind="SPACE"/>
                            </xsd:appinfo>
                            <xsd:documentation>PIC X(10) display</xsd:documentation>
                          </xsd:annotation>
                          <xsd:simpleType>
                            <xsd:restriction base="dfdlCobolFmt:PICX__string">
                              <xsd:maxLength value="10"/>
                            </xsd:restriction>
                          </xsd:simpleType>
                        </xsd:element>
                        <xsd:element default=" " dfdl:length="50" name="fill_0">
                          <xsd:annotation>
                            <xsd:appinfo source="http://www.wsadie.com/appinfo">
                              <initialValue kind="SPACE"/>
                            </xsd:appinfo>
                            <xsd:documentation>PIC X(50) display</xsd:documentation>
                          </xsd:annotation>
                          <xsd:simpleType>
                            <xsd:restriction base="dfdlCobolFmt:PICX__string">
                              <xsd:maxLength value="50"/>
                            </xsd:restriction>
                          </xsd:simpleType>
                        </xsd:element>
                      </xsd:sequence>
                    </xsd:complexType>
                  </xsd:element>
                  <xsd:element dfdl:lengthKind="implicit" dfdl:occursCount="{../../../PDIROUT_OUTPUT_AREA/PDIROUT_OCCURS_IND_AREA/PDIROUT_PCP_OCCURS}" dfdl:occursCountKind="expression" maxOccurs="100" minOccurs="0" name="PDIROUT_PCP_GROUP_ADDR">
                    <xsd:annotation>
                      <xsd:appinfo source="http://www.wsadie.com/appinfo">
                        <dependingOn>//pdiroutoutput_pdirout__output__area_pdirout__occurs__ind__area;XSDModelGroupDefinition=1/XSDModelGroup/XSDParticle=2/PDIROUT_PCP_OCCURS;XSDElementDeclaration</dependingOn>
                      </xsd:appinfo>
                    </xsd:annotation>
                    <xsd:complexType>
                      <xsd:sequence>
                        <xsd:element default=" " dfdl:length="40" name="PDIROUT_ADDR_LINE1">
                          <xsd:annotation>
                            <xsd:appinfo source="http://www.wsadie.com/appinfo">
                              <initialValue kind="SPACE"/>
                            </xsd:appinfo>
                            <xsd:documentation>PIC X(40) display</xsd:documentation>
                          </xsd:annotation>
                          <xsd:simpleType>
                            <xsd:restriction base="dfdlCobolFmt:PICX__string">
                              <xsd:maxLength value="40"/>
                            </xsd:restriction>
                          </xsd:simpleType>
                        </xsd:element>
                        <xsd:element default=" " dfdl:length="40" name="PDIROUT_ADDR_LINE2">
                          <xsd:annotation>
                            <xsd:appinfo source="http://www.wsadie.com/appinfo">
                              <initialValue kind="SPACE"/>
                            </xsd:appinfo>
                            <xsd:documentation>PIC X(40) display</xsd:documentation>
                          </xsd:annotation>
                          <xsd:simpleType>
                            <xsd:restriction base="dfdlCobolFmt:PICX__string">
                              <xsd:maxLength value="40"/>
                            </xsd:restriction>
                          </xsd:simpleType>
                        </xsd:element>
                        <xsd:element default=" " dfdl:length="25" name="PDIROUT_CITY">
                          <xsd:annotation>
                            <xsd:appinfo source="http://www.wsadie.com/appinfo">
                              <initialValue kind="SPACE"/>
                            </xsd:appinfo>
                            <xsd:documentation>PIC X(25) display</xsd:documentation>
                          </xsd:annotation>
                          <xsd:simpleType>
                            <xsd:restriction base="dfdlCobolFmt:PICX__string">
                              <xsd:maxLength value="25"/>
                            </xsd:restriction>
                          </xsd:simpleType>
                        </xsd:element>
                        <xsd:element default=" " dfdl:length="2" name="PDIROUT_STATE">
                          <xsd:annotation>
                            <xsd:appinfo source="http://www.wsadie.com/appinfo">
                              <initialValue kind="SPACE"/>
                            </xsd:appinfo>
                            <xsd:documentation>PIC X(2) display</xsd:documentation>
                          </xsd:annotation>
                          <xsd:simpleType>
                            <xsd:restriction base="dfdlCobolFmt:PICX__string">
                              <xsd:maxLength value="2"/>
                            </xsd:restriction>
                          </xsd:simpleType>
                        </xsd:element>
                        <xsd:element default=" " dfdl:length="9" name="PDIROUT_ZIP">
                          <xsd:annotation>
                            <xsd:appinfo source="http://www.wsadie.com/appinfo">
                              <initialValue kind="SPACE"/>
                            </xsd:appinfo>
                            <xsd:documentation>PIC X(9) display</xsd:documentation>
                          </xsd:annotation>
                          <xsd:simpleType>
                            <xsd:restriction base="dfdlCobolFmt:PICX__string">
                              <xsd:maxLength value="9"/>
                            </xsd:restriction>
                          </xsd:simpleType>
                        </xsd:element>
                        <xsd:element default=" " dfdl:length="10" name="PDIROUT_PHONE">
                          <xsd:annotation>
                            <xsd:appinfo source="http://www.wsadie.com/appinfo">
                              <initialValue kind="SPACE"/>
                            </xsd:appinfo>
                            <xsd:documentation>PIC X(10) display</xsd:documentation>
                          </xsd:annotation>
                          <xsd:simpleType>
                            <xsd:restriction base="dfdlCobolFmt:PICX__string">
                              <xsd:maxLength value="10"/>
                            </xsd:restriction>
                          </xsd:simpleType>
                        </xsd:element>
                        <xsd:element default=" " dfdl:length="50" name="fill_1">
                          <xsd:annotation>
                            <xsd:appinfo source="http://www.wsadie.com/appinfo">
                              <initialValue kind="SPACE"/>
                            </xsd:appinfo>
                            <xsd:documentation>PIC X(50) display</xsd:documentation>
                          </xsd:annotation>
                          <xsd:simpleType>
                            <xsd:restriction base="dfdlCobolFmt:PICX__string">
                              <xsd:maxLength value="50"/>
                            </xsd:restriction>
                          </xsd:simpleType>
                        </xsd:element>
                      </xsd:sequence>
                    </xsd:complexType>
                  </xsd:element>
                </xsd:sequence>
              </xsd:complexType>
            </xsd:element>
            <xsd:element dfdl:lengthKind="implicit" name="PDIROUT_OTHER_FIELDS">
              <xsd:complexType>
                <xsd:sequence>
                  <xsd:element default=" " dfdl:length="10" name="PDIROUT_IL_SPECIALTY">
                    <xsd:annotation>
                      <xsd:appinfo source="http://www.wsadie.com/appinfo">
                        <initialValue kind="SPACE"/>
                      </xsd:appinfo>
                      <xsd:documentation>PIC X(10) display</xsd:documentation>
                    </xsd:annotation>
                    <xsd:simpleType>
                      <xsd:restriction base="dfdlCobolFmt:PICX__string">
                        <xsd:maxLength value="10"/>
                      </xsd:restriction>
                    </xsd:simpleType>
                  </xsd:element>
                  <xsd:element dfdl:lengthKind="implicit" name="PDIROUT_IL_AGE_LIMIT">
                    <xsd:complexType>
                      <xsd:sequence>
                        <xsd:element default=" " dfdl:length="9" name="PDIROUT_IL_FROM_AGE">
                          <xsd:annotation>
                            <xsd:appinfo source="http://www.wsadie.com/appinfo">
                              <initialValue kind="SPACE"/>
                            </xsd:appinfo>
                            <xsd:documentation>PIC X(9) display</xsd:documentation>
                          </xsd:annotation>
                          <xsd:simpleType>
                            <xsd:restriction base="dfdlCobolFmt:PICX__string">
                              <xsd:maxLength value="9"/>
                            </xsd:restriction>
                          </xsd:simpleType>
                        </xsd:element>
                        <xsd:element default=" " dfdl:length="9" name="PDIROUT_IL_TO_AGE">
                          <xsd:annotation>
                            <xsd:appinfo source="http://www.wsadie.com/appinfo">
                              <initialValue kind="SPACE"/>
                            </xsd:appinfo>
                            <xsd:documentation>PIC X(9) display</xsd:documentation>
                          </xsd:annotation>
                          <xsd:simpleType>
                            <xsd:restriction base="dfdlCobolFmt:PICX__string">
                              <xsd:maxLength value="9"/>
                            </xsd:restriction>
                          </xsd:simpleType>
                        </xsd:element>
                      </xsd:sequence>
                    </xsd:complexType>
                  </xsd:element>
                  <xsd:element default=" " dfdl:length="5" name="PDIROUT_TX_PORG">
                    <xsd:annotation>
                      <xsd:appinfo source="http://www.wsadie.com/appinfo">
                        <initialValue kind="SPACE"/>
                      </xsd:appinfo>
                      <xsd:documentation>PIC X(5) display</xsd:documentation>
                    </xsd:annotation>
                    <xsd:simpleType>
                      <xsd:restriction base="dfdlCobolFmt:PICX__string">
                        <xsd:maxLength value="5"/>
                      </xsd:restriction>
                    </xsd:simpleType>
                  </xsd:element>
                  <xsd:element default=" " dfdl:length="1" name="PDIROUT_STATUS">
                    <xsd:annotation>
                      <xsd:appinfo source="http://www.wsadie.com/appinfo">
                        <initialValue kind="SPACE"/>
                      </xsd:appinfo>
                      <xsd:documentation>PIC X display</xsd:documentation>
                    </xsd:annotation>
                    <xsd:simpleType>
                      <xsd:restriction base="dfdlCobolFmt:PICX__string">
                        <xsd:maxLength value="1"/>
                      </xsd:restriction>
                    </xsd:simpleType>
                  </xsd:element>
                  <xsd:element default=" " dfdl:length="2" name="PDIROUT_REASON">
                    <xsd:annotation>
                      <xsd:appinfo source="http://www.wsadie.com/appinfo">
                        <initialValue kind="SPACE"/>
                      </xsd:appinfo>
                      <xsd:documentation>PIC X(2) display</xsd:documentation>
                    </xsd:annotation>
                    <xsd:simpleType>
                      <xsd:restriction base="dfdlCobolFmt:PICX__string">
                        <xsd:maxLength value="2"/>
                      </xsd:restriction>
                    </xsd:simpleType>
                  </xsd:element>
                  <xsd:element default=" " dfdl:length="20" name="PDIROUT_PCPA_NUMBER">
                    <xsd:annotation>
                      <xsd:appinfo source="http://www.wsadie.com/appinfo">
                        <initialValue kind="SPACE"/>
                      </xsd:appinfo>
                      <xsd:documentation>PIC X(20) display</xsd:documentation>
                    </xsd:annotation>
                    <xsd:simpleType>
                      <xsd:restriction base="dfdlCobolFmt:PICX__string">
                        <xsd:maxLength value="20"/>
                      </xsd:restriction>
                    </xsd:simpleType>
                  </xsd:element>
                  <xsd:element default=" " dfdl:length="50" name="PDIROUT_DUMMY_MG_SITE_ID_NAME">
                    <xsd:annotation>
                      <xsd:appinfo source="http://www.wsadie.com/appinfo">
                        <initialValue kind="SPACE"/>
                      </xsd:appinfo>
                      <xsd:documentation>PIC X(50) display</xsd:documentation>
                    </xsd:annotation>
                    <xsd:simpleType>
                      <xsd:restriction base="dfdlCobolFmt:PICX__string">
                        <xsd:maxLength value="50"/>
                      </xsd:restriction>
                    </xsd:simpleType>
                  </xsd:element>
                  <xsd:element default=" " dfdl:length="50" name="PDIROUT_DUMMY_PROV_ID_NAME">
                    <xsd:annotation>
                      <xsd:appinfo source="http://www.wsadie.com/appinfo">
                        <initialValue kind="SPACE"/>
                      </xsd:appinfo>
                      <xsd:documentation>PIC X(50) display</xsd:documentation>
                    </xsd:annotation>
                    <xsd:simpleType>
                      <xsd:restriction base="dfdlCobolFmt:PICX__string">
                        <xsd:maxLength value="50"/>
                      </xsd:restriction>
                    </xsd:simpleType>
                  </xsd:element>
                  <xsd:element default=" " dfdl:length="50" name="PDIROUT_DUMMY_DENTAL_NAME">
                    <xsd:annotation>
                      <xsd:appinfo source="http://www.wsadie.com/appinfo">
                        <initialValue kind="SPACE"/>
                      </xsd:appinfo>
                      <xsd:documentation>PIC X(50) display</xsd:documentation>
                    </xsd:annotation>
                    <xsd:simpleType>
                      <xsd:restriction base="dfdlCobolFmt:PICX__string">
                        <xsd:maxLength value="50"/>
                      </xsd:restriction>
                    </xsd:simpleType>
                  </xsd:element>
                  <xsd:element default=" " dfdl:length="50" name="PDIROUT_DUMMY_PCPA_NAME">
                    <xsd:annotation>
                      <xsd:appinfo source="http://www.wsadie.com/appinfo">
                        <initialValue kind="SPACE"/>
                      </xsd:appinfo>
                      <xsd:documentation>PIC X(50) display</xsd:documentation>
                    </xsd:annotation>
                    <xsd:simpleType>
                      <xsd:restriction base="dfdlCobolFmt:PICX__string">
                        <xsd:maxLength value="50"/>
                      </xsd:restriction>
                    </xsd:simpleType>
                  </xsd:element>
                  <xsd:element default=" " dfdl:length="200" name="fill_2">
                    <xsd:annotation>
                      <xsd:appinfo source="http://www.wsadie.com/appinfo">
                        <initialValue kind="SPACE"/>
                      </xsd:appinfo>
                      <xsd:documentation>PIC X(200) display</xsd:documentation>
                    </xsd:annotation>
                    <xsd:simpleType>
                      <xsd:restriction base="dfdlCobolFmt:PICX__string">
                        <xsd:maxLength value="200"/>
                      </xsd:restriction>
                    </xsd:simpleType>
                  </xsd:element>
                </xsd:sequence>
              </xsd:complexType>
            </xsd:element>
          </xsd:sequence>
        </xsd:complexType>
      </xsd:element>
      <xsd:element dfdl:lengthKind="implicit" name="PDIROUT_NETWORK_LIST_AREA">
        <xsd:complexType>
          <xsd:sequence>
            <xsd:element dfdl:lengthKind="implicit" dfdl:occursCount="{../../PDIROUT_OUTPUT_AREA/PDIROUT_OCCURS_IND_AREA/PDIROUT_NWK_OCCURS}" dfdl:occursCountKind="expression" maxOccurs="1000" minOccurs="0" name="PDIROUT_NWK_INFO">
              <xsd:annotation>
                <xsd:appinfo source="http://www.wsadie.com/appinfo">
                  <dependingOn>//pdiroutoutput_pdirout__output__area_pdirout__occurs__ind__area;XSDModelGroupDefinition=1/XSDModelGroup/XSDParticle=3/PDIROUT_NWK_OCCURS;XSDElementDeclaration</dependingOn>
                </xsd:appinfo>
              </xsd:annotation>
              <xsd:complexType>
                <xsd:sequence>
                  <xsd:element default=" " dfdl:length="3" name="PDIROUT_NWK_CD">
                    <xsd:annotation>
                      <xsd:appinfo source="http://www.wsadie.com/appinfo">
                        <initialValue kind="SPACE"/>
                      </xsd:appinfo>
                      <xsd:documentation>PIC X(3) display</xsd:documentation>
                    </xsd:annotation>
                    <xsd:simpleType>
                      <xsd:restriction base="dfdlCobolFmt:PICX__string">
                        <xsd:maxLength value="3"/>
                      </xsd:restriction>
                    </xsd:simpleType>
                  </xsd:element>
                  <xsd:element default=" " dfdl:length="50" name="PDIROUT_NWK_DESC">
                    <xsd:annotation>
                      <xsd:appinfo source="http://www.wsadie.com/appinfo">
                        <initialValue kind="SPACE"/>
                      </xsd:appinfo>
                      <xsd:documentation>PIC X(50) display</xsd:documentation>
                    </xsd:annotation>
                    <xsd:simpleType>
                      <xsd:restriction base="dfdlCobolFmt:PICX__string">
                        <xsd:maxLength value="50"/>
                      </xsd:restriction>
                    </xsd:simpleType>
                  </xsd:element>
                  <xsd:element default=" " dfdl:length="3" name="PDIROUT_SUB_NWK_CD">
                    <xsd:annotation>
                      <xsd:appinfo source="http://www.wsadie.com/appinfo">
                        <initialValue kind="SPACE"/>
                      </xsd:appinfo>
                      <xsd:documentation>PIC X(3) display</xsd:documentation>
                    </xsd:annotation>
                    <xsd:simpleType>
                      <xsd:restriction base="dfdlCobolFmt:PICX__string">
                        <xsd:maxLength value="3"/>
                      </xsd:restriction>
                    </xsd:simpleType>
                  </xsd:element>
                  <xsd:element default=" " dfdl:length="50" name="PDIROUT_SUB_NWK_DESC">
                    <xsd:annotation>
                      <xsd:appinfo source="http://www.wsadie.com/appinfo">
                        <initialValue kind="SPACE"/>
                      </xsd:appinfo>
                      <xsd:documentation>PIC X(50) display</xsd:documentation>
                    </xsd:annotation>
                    <xsd:simpleType>
                      <xsd:restriction base="dfdlCobolFmt:PICX__string">
                        <xsd:maxLength value="50"/>
                      </xsd:restriction>
                    </xsd:simpleType>
                  </xsd:element>
                  <xsd:element default=" " dfdl:length="10" name="PDIROUT_NWK_EFF_DT">
                    <xsd:annotation>
                      <xsd:appinfo source="http://www.wsadie.com/appinfo">
                        <initialValue kind="SPACE"/>
                      </xsd:appinfo>
                      <xsd:documentation>PIC X(10) display</xsd:documentation>
                    </xsd:annotation>
                    <xsd:simpleType>
                      <xsd:restriction base="dfdlCobolFmt:PICX__string">
                        <xsd:maxLength value="10"/>
                      </xsd:restriction>
                    </xsd:simpleType>
                  </xsd:element>
                  <xsd:element default=" " dfdl:length="10" name="PDIROUT_NWK_END_DT">
                    <xsd:annotation>
                      <xsd:appinfo source="http://www.wsadie.com/appinfo">
                        <initialValue kind="SPACE"/>
                      </xsd:appinfo>
                      <xsd:documentation>PIC X(10) display</xsd:documentation>
                    </xsd:annotation>
                    <xsd:simpleType>
                      <xsd:restriction base="dfdlCobolFmt:PICX__string">
                        <xsd:maxLength value="10"/>
                      </xsd:restriction>
                    </xsd:simpleType>
                  </xsd:element>
                </xsd:sequence>
              </xsd:complexType>
            </xsd:element>
            <xsd:element default=" " dfdl:length="100" name="fill_3">
              <xsd:annotation>
                <xsd:appinfo source="http://www.wsadie.com/appinfo">
                  <initialValue kind="SPACE"/>
                </xsd:appinfo>
                <xsd:documentation>PIC X(100) display</xsd:documentation>
              </xsd:annotation>
              <xsd:simpleType>
                <xsd:restriction base="dfdlCobolFmt:PICX__string">
                  <xsd:maxLength value="100"/>
                </xsd:restriction>
              </xsd:simpleType>
            </xsd:element>
          </xsd:sequence>
        </xsd:complexType>
      </xsd:element>
    </xsd:sequence>
  </xsd:complexType>
  <xsd:annotation>
    <xsd:appinfo source="http://www.ogf.org/dfdl/">
      <dfdl:format binaryFloatRep="ieee" byteOrder="bigEndian" encoding="UTF-8" ignoreCase="yes" leadingSkip="0" occursCountKind="fixed" ref="dfdlCobolFmt:CobolDataFormat" textNumberPadCharacter="0" textStringJustification="left" textStringPadCharacter="%SP;" textZonedSignStyle="asciiStandard" trailingSkip="0"/>
    </xsd:appinfo>
  </xsd:annotation>
  <xsd:annotation>
    <xsd:documentation>
   This XSD was created by importing COBOL copybook.

   Source file:   PDIROUT.cpy

   Import options:
      EXT_DECIMAL_SIGN=ASCII
      QUOTE=DOUBLE
      NUMPROC=PFD
      FLOATING_POINT_FORMAT=0
      NSYMBOL=NATIONAL
      ENDIAN=Big
      EXTENSION_CPY=DS
      CODEPAGE=UTF-8
      TRUNC=STD
      EXTENSION_CBL=FP
      EXTENSION_CCP=FP
      PLATFORM_SELECTION=0
      REMOTE_ENDIAN=Little
      EXTENSION_COB=FP
      SCHEMA_TARGET_NAMESPACE_URI=null
      CREATE_DEFAULT_VALUES_FROM_INITIAL_VALUES=true
      CREATE_FACETS_FROM_LEVEL_88_VALUE_CLAUSES=false
      CREATE_NULL_VALUES_FOR_FIELDS=false
      NULL_CHARACTER_FOR_STRING=%SP;
      NULL_CHARACTER_FOR_NUMBER=%#x00;
      STRING_PADDING_CHARACTER=%SP;
      NUMBER_PADDING_CHARACTER=0
      DEFAULT_FOR_STRING=
      DEFAULT_FOR_NUMBER=0

</xsd:documentation>
  </xsd:annotation>
  <xsd:element dfdl:lengthKind="implicit" ibmSchExtn:docRoot="true" name="PDIROUTOUTPUT" type="PDIROUTOUTPUT"/>
</xsd:schema>
[/code]
Back to top
View user's profile Send private message
lancelotlinc
PostPosted: Fri Jul 26, 2013 9:57 am    Post subject: Reply with quote

Jedi Knight

Joined: 22 Mar 2010
Posts: 4941
Location: Bloomington, IL USA

kimberts the DFDL expert, I'm sure he'll review the article as soon as he can. You might like to amend your title on this post to include 'DFDL' to catch his eye. Also would be helpful if you posted an example of a good COBOL payload that your trying to get the DFDL serializer to produce.
_________________
http://leanpub.com/IIB_Tips_and_Tricks
Save $20: Coupon Code: MQSERIES_READER
Back to top
View user's profile Send private message Send e-mail
mqjeff
PostPosted: Fri Jul 26, 2013 9:59 am    Post subject: Reply with quote

Grand Master

Joined: 25 Jun 2008
Posts: 17447

http://publib.boulder.ibm.com/infocenter/wmbhelp/v8r0m0/topic/com.ibm.etools.mft.doc/df20067_.htm
Back to top
View user's profile Send private message
kimbert
PostPosted: Sat Jul 27, 2013 3:17 am    Post subject: Reply with quote

Jedi Council

Joined: 29 Jul 2003
Posts: 5542
Location: Southampton

Quote:
Can you guys pls let me know what this error is for.
What answers are you expecting? The error message simply says 'Copy book formatting error'. That could mean almost anything. Or it could even be a defect in RFHUtil.
Before anybody can help you, you will need to collect more information. I suggest that you validate the output of your flow using something that emits useful error messages.
_________________
Before you criticize someone, walk a mile in their shoes. That way you're a mile away, and you have their shoes too.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » WebSphere Message Broker (ACE) Support » XML to copybook conversion - DFDL
Jump to:  



You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
Protected by Anti-Spam ACP
 
 


Theme by Dustin Baccetti
Powered by phpBB © 2001, 2002 phpBB Group

Copyright © MQSeries.net. All rights reserved.