Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $ set noalter nowarning autolock ms(2) nobound filetype(4)
- IDENTIFICATION DIVISION.
- PROGRAM-ID. 161950073855929.
- AUTHOR. MARCO POLO.
- ENVIRONMENT DIVISION.
- CONFIGURATION SECTION.
- SOURCE-COMPUTER. VDX.
- OBJECT-COMPUTER. VDX.
- INPUT-OUTPUT SECTION.
- FILE-CONTROL.
- COPY SP03A60.SEL.
- COPY SP03A66.SEL.
- COPY SP03A69.SEL.
- DATA DIVISION.
- FILE SECTION.
- COPY SP03A60.FD.
- COPY SP03A66.FD.
- COPY SP03A69.FD.
- WORKING-STORAGE SECTION.
- 77 status03-a60 pic x(02).
- 77 status03-a66 pic x(02).
- 77 status03-a69 pic x(02).
- 77 ws-st pic xx.
- 88 st value "00" "02" "10" "23" "99" "9D".
- PROCEDURE DIVISION.
- DECLARATIVES.
- ERRO SECTION.
- USE AFTER STANDARD ERROR PROCEDURE ON
- sp03a60
- sp03a66
- sp03a69.
- PROCED1.
- move status03-a60 to ws-st
- if not st
- DISPLAY "{&__status&:"status03-a60"}]"
- STOP RUN.
- move status03-a66 to ws-st
- if not st
- DISPLAY "{&__status&:"status03-a66"}]"
- STOP RUN.
- move status03-a69 to ws-st
- if not st
- DISPLAY "{&__status&:"status03-a69"}]"
- STOP RUN.
- FIM-PROCED.
- END DECLARATIVES.
- DISPLAY "[".
- INICIO.
- MOVE "../arqf/fisc1711" TO ws-sp03a60
- MOVE "../arqf/fiscfat1711" TO ws-sp03a66
- MOVE "../arqf/fiscit1711" TO ws-sp03a69
- OPEN INPUT sp03a60 sp03a66 sp03a69
- INITIALIZE sp0369
- move 77088 to sp0369item.
- POSICIONA.
- INITIALIZE sp0360 sp0366
- START sp03a69 KEY IS GREATER sp0369key1
- INVALID KEY
- GO TO FIM
- END-START
- READ sp03a69 NEXT AT END
- GO TO FIM
- END-READ
- IF sp0369item not = 77088
- GO TO FIM.
- IF sp0369dtmov-dia not < 13
- and sp0369dtmov-dia not > 17
- and (sp0369mov not = 12 and 2 and 6 and 16)
- GO TO POSICIONA.
- move sp0369loja to sp0360loja
- move sp0369entsai to sp0360entsai
- move sp0369tp-emi to sp0360tp-emi
- move sp0369mov to sp0360mov
- move sp0369nf to sp0360nf
- move sp0369cnpj to sp0360cnpj
- move sp0369serie to sp0360serie.
- READ sp03a60.
- IF status03-a60 = "23"
- INITIALIZE sp0360.
- move sp0369loja to sp0366loja
- move sp0369entsai to sp0366entsai
- move sp0369tp-emi to sp0366tp-emi
- move sp0369mov to sp0366mov
- move sp0369nf to sp0366nf
- move sp0369cnpj to sp0366cnpj
- move sp0369serie to sp0366serie.
- START sp03a66 KEY IS GREATER sp0366key
- INVALID KEY
- GO TO PULA-SP03A66
- END-START
- READ sp03a66 NEXT AT END
- GO TO PULA-SP03A66
- END-READ.
- PULA-SP03A66.
- IF sp0369loja not = sp0366loja
- or sp0369entsai not = sp0366entsai
- or sp0369tp-emi not = sp0366tp-emi
- or sp0369mov not = sp0366mov
- or sp0369nf not = sp0366nf
- or sp0369cnpj not = sp0366cnpj
- or sp0369serie not = sp0366serie
- INITIALIZE sp0366.
- DISPLAY "{"
- - "&#&loja&#& : "
- - "&#&" sp0369loja "&#&,"
- - "&#&item&#& : "
- - "&#&" sp0369item "&#&,"
- - "&#&mov&#& : "
- - "&#&" sp0369mov "&#&,"
- - "&#&quant&#& : "
- - "&#&" sp0369quant "&#&,"
- - "&#&ftconv&#& : "
- - "&#&" sp0369ftconv "&#&,"
- - "&#&valor&#& : "
- - "&#&" sp0369vl-item "&#&,"
- - "&#&preco&#& : "
- - "&#&" sp0369preco "&#&,"
- - "&#&pmz&#& : "
- - "&#&" sp0369pmz "&#&,"
- - "&#&custo&#& : "
- - "&#&" sp0369prcus "&#&,"
- - "&#&bonif&#& : "
- - "&#&" sp0369bonif "&#&,"
- - "&#&cfop&#& : "
- - "&#&" sp0369cfop "&#&,"
- - "&#&depsaldest&#& : "
- - "&#&" sp0360dep-sal-dest "&#&,"
- - "&#&tipo&#& : "
- - "&#&" sp0366tipo "&#&"
- - "},"
- GO TO POSICIONA.
- FIM.
- DISPLAY "]".
- CLOSE sp03a60.
- CLOSE sp03a66.
- CLOSE sp03a69.
- STOP RUN.
- $ set noalter nowarning autolock ms(2) nobound filetype(4)
- IDENTIFICATION DIVISION.
- PROGRAM-ID. 161950153929421.
- AUTHOR. MARCO POLO.
- ENVIRONMENT DIVISION.
- CONFIGURATION SECTION.
- SOURCE-COMPUTER. VDX.
- OBJECT-COMPUTER. VDX.
- INPUT-OUTPUT SECTION.
- FILE-CONTROL.
- COPY SP01A10.SEL.
- DATA DIVISION.
- FILE SECTION.
- COPY SP01A10.FD.
- WORKING-STORAGE SECTION.
- 77 status01-a10 pic x(02).
- 77 ws-st pic xx.
- 88 st value "00" "02" "10" "23" "99" "9D".
- PROCEDURE DIVISION.
- DECLARATIVES.
- ERRO SECTION.
- USE AFTER STANDARD ERROR PROCEDURE ON
- sp01a10.
- PROCED1.
- move status01-a10 to ws-st
- if not st
- DISPLAY "{&__status&:"status01-a10"}]"
- STOP RUN.
- FIM-PROCED.
- END DECLARATIVES.
- DISPLAY "[".
- INICIO.
- MOVE "../arqm/mv1711" TO ws-sp01a10
- OPEN INPUT sp01a10
- INITIALIZE sp0110a.
- POSICIONA.
- START sp01a10 KEY IS GREATER sp0110key
- INVALID KEY
- GO TO FIM
- END-START
- READ sp01a10 NEXT AT END
- GO TO FIM
- END-READ
- IF sp0110item not = 0
- MOVE 999999 TO sp0110item
- GO TO POSICIONA.
- IF sp0110dmov < 13
- MOVE 999999 TO sp0110item
- GO TO POSICIONA.
- IF sp0110dmov > 17
- MOVE 999999 TO sp0110item
- GO TO POSICIONA.
- IF sp0110mov not = 40
- and 70 and 71
- and 84 and 85
- and 86 and 87
- MOVE 999999 TO sp0110item
- GO TO POSICIONA.
- MOVE 77088 TO sp0110item
- MOVE 0 TO sp0110grade.
- READ sp01a10
- IF status01-a10 = "23"
- MOVE 999999 TO sp0110item
- GO TO POSICIONA.
- DISPLAY "{"
- - "&#&loja&#& : "
- - "&#&" sp0110loja "&#&,"
- - "&#&item&#& : "
- - "&#&" sp0110item "&#&,"
- - "&#&mov&#& : "
- - "&#&" sp0110mov "&#&,"
- - "&#&quant&#& : "
- - "&#&" sp0110quant "&#&,"
- - "&#&ftconv&#& : "
- - "&#&" sp0110ftconv "&#&,"
- - "&#&valor&#& : "
- - "&#&" sp0110vlitem "&#&,"
- - "&#&preco&#& : "
- - "&#&" sp0110prunit "&#&,"
- - "&#&pmz&#& : "
- - "&#&" sp0110pmz "&#&,"
- - "&#&custo&#& : "
- - "&#&" sp0110custo "&#&,"
- - "&#&cfop&#& : "
- - "&#&" sp0110cdfis2-04 "&#&"
- - "},"
- GO TO POSICIONA.
- FIM.
- DISPLAY "]".
- CLOSE sp01a10.
- STOP RUN.
- $ set noalter nowarning autolock ms(2) nobound filetype(4)
- IDENTIFICATION DIVISION.
- PROGRAM-ID. 161951457328019.
- AUTHOR. MARCO POLO.
- ENVIRONMENT DIVISION.
- CONFIGURATION SECTION.
- SOURCE-COMPUTER. VDX.
- OBJECT-COMPUTER. VDX.
- INPUT-OUTPUT SECTION.
- FILE-CONTROL.
- COPY SP03A60.SEL.
- COPY SP03A66.SEL.
- COPY SP03A69.SEL.
- DATA DIVISION.
- FILE SECTION.
- COPY SP03A60.FD.
- COPY SP03A66.FD.
- COPY SP03A69.FD.
- WORKING-STORAGE SECTION.
- 77 status03-a60 pic x(02).
- 77 status03-a66 pic x(02).
- 77 status03-a69 pic x(02).
- 77 ws-st pic xx.
- 88 st value "00" "02" "10" "23" "99" "9D".
- PROCEDURE DIVISION.
- DECLARATIVES.
- ERRO SECTION.
- USE AFTER STANDARD ERROR PROCEDURE ON
- sp03a60
- sp03a66
- sp03a69.
- PROCED1.
- move status03-a60 to ws-st
- if not st
- DISPLAY "{&__status&:"status03-a60"}]"
- STOP RUN.
- move status03-a66 to ws-st
- if not st
- DISPLAY "{&__status&:"status03-a66"}]"
- STOP RUN.
- move status03-a69 to ws-st
- if not st
- DISPLAY "{&__status&:"status03-a69"}]"
- STOP RUN.
- FIM-PROCED.
- END DECLARATIVES.
- DISPLAY "[".
- INICIO.
- MOVE "../arqf/fisc1711" TO ws-sp03a60
- MOVE "../arqf/fiscfat1711" TO ws-sp03a66
- MOVE "../arqf/fiscit1711" TO ws-sp03a69
- OPEN INPUT sp03a60 sp03a66 sp03a69
- INITIALIZE sp0369
- move 496858 to sp0369item.
- POSICIONA.
- INITIALIZE sp0360 sp0366
- START sp03a69 KEY IS GREATER sp0369key1
- INVALID KEY
- GO TO FIM
- END-START
- READ sp03a69 NEXT AT END
- GO TO FIM
- END-READ
- IF sp0369item not = 496858
- GO TO FIM.
- IF sp0369dtmov-dia not < 13
- and sp0369dtmov-dia not > 17
- and (sp0369mov not = 12 and 2 and 6 and 16)
- GO TO POSICIONA.
- move sp0369loja to sp0360loja
- move sp0369entsai to sp0360entsai
- move sp0369tp-emi to sp0360tp-emi
- move sp0369mov to sp0360mov
- move sp0369nf to sp0360nf
- move sp0369cnpj to sp0360cnpj
- move sp0369serie to sp0360serie.
- READ sp03a60.
- IF status03-a60 = "23"
- INITIALIZE sp0360.
- move sp0369loja to sp0366loja
- move sp0369entsai to sp0366entsai
- move sp0369tp-emi to sp0366tp-emi
- move sp0369mov to sp0366mov
- move sp0369nf to sp0366nf
- move sp0369cnpj to sp0366cnpj
- move sp0369serie to sp0366serie.
- START sp03a66 KEY IS GREATER sp0366key
- INVALID KEY
- GO TO PULA-SP03A66
- END-START
- READ sp03a66 NEXT AT END
- GO TO PULA-SP03A66
- END-READ.
- PULA-SP03A66.
- IF sp0369loja not = sp0366loja
- or sp0369entsai not = sp0366entsai
- or sp0369tp-emi not = sp0366tp-emi
- or sp0369mov not = sp0366mov
- or sp0369nf not = sp0366nf
- or sp0369cnpj not = sp0366cnpj
- or sp0369serie not = sp0366serie
- INITIALIZE sp0366.
- DISPLAY "{"
- - "&#&loja&#& : "
- - "&#&" sp0369loja "&#&,"
- - "&#&item&#& : "
- - "&#&" sp0369item "&#&,"
- - "&#&mov&#& : "
- - "&#&" sp0369mov "&#&,"
- - "&#&quant&#& : "
- - "&#&" sp0369quant "&#&,"
- - "&#&ftconv&#& : "
- - "&#&" sp0369ftconv "&#&,"
- - "&#&valor&#& : "
- - "&#&" sp0369vl-item "&#&,"
- - "&#&preco&#& : "
- - "&#&" sp0369preco "&#&,"
- - "&#&pmz&#& : "
- - "&#&" sp0369pmz "&#&,"
- - "&#&custo&#& : "
- - "&#&" sp0369prcus "&#&,"
- - "&#&bonif&#& : "
- - "&#&" sp0369bonif "&#&,"
- - "&#&cfop&#& : "
- - "&#&" sp0369cfop "&#&,"
- - "&#&depsaldest&#& : "
- - "&#&" sp0360dep-sal-dest "&#&,"
- - "&#&tipo&#& : "
- - "&#&" sp0366tipo "&#&"
- - "},"
- GO TO POSICIONA.
- FIM.
- DISPLAY "]".
- CLOSE sp03a60.
- CLOSE sp03a66.
- CLOSE sp03a69.
- STOP RUN.
- $ set noalter nowarning autolock ms(2) nobound filetype(4)
- IDENTIFICATION DIVISION.
- PROGRAM-ID. 161951541332375.
- AUTHOR. MARCO POLO.
- ENVIRONMENT DIVISION.
- CONFIGURATION SECTION.
- SOURCE-COMPUTER. VDX.
- OBJECT-COMPUTER. VDX.
- INPUT-OUTPUT SECTION.
- FILE-CONTROL.
- COPY SP01A10.SEL.
- DATA DIVISION.
- FILE SECTION.
- COPY SP01A10.FD.
- WORKING-STORAGE SECTION.
- 77 status01-a10 pic x(02).
- 77 ws-st pic xx.
- 88 st value "00" "02" "10" "23" "99" "9D".
- PROCEDURE DIVISION.
- DECLARATIVES.
- ERRO SECTION.
- USE AFTER STANDARD ERROR PROCEDURE ON
- sp01a10.
- PROCED1.
- move status01-a10 to ws-st
- if not st
- DISPLAY "{&__status&:"status01-a10"}]"
- STOP RUN.
- FIM-PROCED.
- END DECLARATIVES.
- DISPLAY "[".
- INICIO.
- MOVE "../arqm/mv1711" TO ws-sp01a10
- OPEN INPUT sp01a10
- INITIALIZE sp0110a.
- POSICIONA.
- START sp01a10 KEY IS GREATER sp0110key
- INVALID KEY
- GO TO FIM
- END-START
- READ sp01a10 NEXT AT END
- GO TO FIM
- END-READ
- IF sp0110item not = 0
- MOVE 999999 TO sp0110item
- GO TO POSICIONA.
- IF sp0110dmov < 13
- MOVE 999999 TO sp0110item
- GO TO POSICIONA.
- IF sp0110dmov > 17
- MOVE 999999 TO sp0110item
- GO TO POSICIONA.
- IF sp0110mov not = 40
- and 70 and 71
- and 84 and 85
- and 86 and 87
- MOVE 999999 TO sp0110item
- GO TO POSICIONA.
- MOVE 496858 TO sp0110item
- MOVE 0 TO sp0110grade.
- READ sp01a10
- IF status01-a10 = "23"
- MOVE 999999 TO sp0110item
- GO TO POSICIONA.
- DISPLAY "{"
- - "&#&loja&#& : "
- - "&#&" sp0110loja "&#&,"
- - "&#&item&#& : "
- - "&#&" sp0110item "&#&,"
- - "&#&mov&#& : "
- - "&#&" sp0110mov "&#&,"
- - "&#&quant&#& : "
- - "&#&" sp0110quant "&#&,"
- - "&#&ftconv&#& : "
- - "&#&" sp0110ftconv "&#&,"
- - "&#&valor&#& : "
- - "&#&" sp0110vlitem "&#&,"
- - "&#&preco&#& : "
- - "&#&" sp0110prunit "&#&,"
- - "&#&pmz&#& : "
- - "&#&" sp0110pmz "&#&,"
- - "&#&custo&#& : "
- - "&#&" sp0110custo "&#&,"
- - "&#&cfop&#& : "
- - "&#&" sp0110cdfis2-04 "&#&"
- - "},"
- GO TO POSICIONA.
- FIM.
- DISPLAY "]".
- CLOSE sp01a10.
- STOP RUN.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement