Skip to content

Commit

Permalink
Stocker la liste des objets à livrer dans une table.
Browse files Browse the repository at this point in the history
  • Loading branch information
ibmiiste authored and DrubigOl committed Feb 18, 2019
1 parent 552a253 commit 6cf4772
Show file tree
Hide file tree
Showing 3 changed files with 28 additions and 4 deletions.
2 changes: 2 additions & 0 deletions .ibmi/QRPGLESRC/CPYLSTOBJ.SQLRPGLE.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
#Mon Dec 31 15:21:10 CET 2018
com.ibm.etools.iseries.projects.core\:textDescription=Copie de la liste des objets du lot dans une table
4 changes: 0 additions & 4 deletions QRPGLESRC/BUILDER.SQLRPGLE
Original file line number Diff line number Diff line change
Expand Up @@ -157,12 +157,8 @@
Endif;
EndIf;



Return;



// --------------------------------------------------
// Procedure name: Ouvrir_curseur
// Purpose: Ouvrir le curseur de lecture de LSTOBJBLD
Expand Down
26 changes: 26 additions & 0 deletions QRPGLESRC/CPYLSTOBJ.SQLRPGLE
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
// --------------------------------------------------
// Procedure name: Copie_liste_objet_a_livres
// Purpose: Liste dans une table les objets à livrer avec les e...
// mplacements où les envoyés
// Returns:
// Parameter: p_Numero_lot => Numéro de lot
// --------------------------------------------------
DCL-PROC Copie_liste_objet_a_livres ;
DCL-PI *N;
p_Numero_lot LIKE(r_Numlot);
END-PI ;

Dcl-s l_requete_sql Char(1024);


l_requete_sql='Create Table L' + %editc(p_Numero_lot:'X') +
'.list_obj as Select * from list_objet_build Where' +
' LOT_NUMBER = ' + %Char(p_Numero_lot) +
') With data';

EXEC SQL
EXECUTE IMMEDIATE :l_requete_sql;


return ;
END-PROC ;

0 comments on commit 6cf4772

Please sign in to comment.