midrange.com code scratchpad
Name:
Jack
Scriptlanguage:
Plain Text
Tabwidth:
4
Date:
04/26/2016 12:59:47 am
IP:
Logged
Description:
XML-INTO
Code:
  1.       *----------------------------------------------------------------------------                                     
  2.      D POItems         DS                                                                                               
  3.      D                                     dim(99)                                                                      
  4.      D                                     qualified                                                                    
  5.      D po#                          100A                                                                                
  6.      D PickupDate                    100A                                                                                
  7.      D Response                     100A                                                                                
  8.      D Reason                       100A                                                                                
  9.      D PO_Found                     100A                                                                                
  10.      D Supplier_Num                 100A                                                                                
  11.      D Vendor_Ind                   100A                                                                                
  12.      D Supplier                     100A                                                                                
  13.      D Vendor_Name                  100A                                                                                
  14.      D Vendor_Num                   100A                                                                                
  15.      D Supplier_Name                100A                                                                                
  16.      D Alt_Data                     100A                                                                                
  17.                                                                                                                         
  18.      D options         s            200a   varying                                                                      
  19.                                                                                                                         
  20.       /free                                                                                                             
  21.                                                                                                                         
  22.            options = 'path=VerifyPurchaseOrderResponse/+                                                                
  23.                           VerifyPurchaseOrderResult/+                                                                   
  24.                           PurchaseOrders+                                                                               
  25.                           purchaseOrderItem +                                                                           
  26.                           case=any +                                                                                    
  27.                           allowextra=yes +                                                                              
  28.                           allowmissing=yes +                                                                            
  29.                           doc=file';                                                                                    
  30.                                                                                                                         
  31.                                                                                                                         
  32.                xml-into poItems %XML('/tmp/results.txt':options);                                                        
  33.                                                                                                                         
  34.           *inlr = *on;                                                                                                  
  35.           Return;                                                                                                       
  36.                                                                                                                         
  37.       /end-free                                                                                                          
© 2004-2019 by midrange.com generated in 0.007s valid xhtml & css