Advertisement
Guest User

Untitled

a guest
Sep 22nd, 2017
94
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. *create the query string
  2. lcQuery = "SELECT a.Handle, a.Hrid, a.EmployeeID, a.FirstName, a.LastName, NVL(b.VarInt, 3) AS RoleID,
  3.         b.Description, b.Created
  4.        FROM Employee!EmployeeMaster a
  5.         LEFT JOIN Employee!EmployeeAttributes b ON b.HRID=a.HRID AND b.AttrTypeID=303
  6.        WHERE a.Active
  7.         AND a.LocID = 12332
  8.         AND a.WorkCenter = 'L7147'
  9.        INTO CURSOR tmpData"
  10. *execute the query
  11. &lcQuery
  12.  
  13. *this fails stating "Command contains unrecognized phrase/keyword" because the string is too long...
  14. *this query will not always be the same and may be longer than this...
  15. *so I'm looking for a dynamic way to split up the string into smaller segments so it doesn't bre
  16. *execute the query
  17. &lcQuery
  18. *this fails stating "Command contains unrecognized phrase/keyword" because the string is too long...
  19. *this query will not always be the same and may be longer than this...
  20. *so I'm looking for a dynamic way to split up the string into smaller segments so it doesn't bre
  21. *this fails stating "Command contains unrecognized phrase/keyword" because the string is too long...
  22. *this query will not always be the same and may be longer than this...
  23. *so I'm looking for a dynamic way to split up the string into smaller segments so it doesn't bre
  24. *this query will not always be the same and may be longer than this...
  25. *so I'm looking for a dynamic way to split up the string into smaller segments so it doesn't bre
  26. *so I'm looking for a dynamic way to split up the string into smaller segments so it doesn't break
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement