× Discuss on any other topics

T24 DFE

More
1 month 3 weeks ago #23406 by Jyags
T24 DFE was created by Jyags
Hi Friends, please let me know, how to append the sequence number in the user defined ID in DFE ID routine?

Please Log in or Create an account to join the conversation.

  • silvergem
  • Offline
  • Elite Member
  • Elite Member
  • TAFC|R12/R13
More
1 month 3 weeks ago #23407 by silvergem
Replied by silvergem on topic T24 DFE
Y.ID = ''
Y.ID = Y.ID : Y.SEQUENCE.NUM

Please Log in or Create an account to join the conversation.

  • VK
  • VK's Avatar
  • Offline
  • Platinum Member
  • Platinum Member
  • TAFC|R19/R21
More
1 month 2 weeks ago #23408 by VK
Replied by VK on topic T24 DFE
Maybe just so?
Y.ID = Y.SEQUENCE.NUM

Please Log in or Create an account to join the conversation.

More
1 month 2 weeks ago #23409 by Jyags
Replied by Jyags on topic T24 DFE
My friend, have you written so far DFE ID routine? If yes, then how you will get sequence number for the incoming data record ? For example : Y.IN.OUT = Y.DATE:"-":Y.CHQ.NUMBER:"-": << Y.SEQ.NO>> ; Here, I want to pass the each record count as sequence number but how ?

Note : DCOUNT no use and looping concept will not work, if so then how I achieve this requirement ?

Please Log in or Create an account to join the conversation.

  • VK
  • VK's Avatar
  • Offline
  • Platinum Member
  • Platinum Member
  • TAFC|R19/R21
More
1 month 2 weeks ago #23410 by VK
Replied by VK on topic T24 DFE
Hi,
if your note concerns me - I did not. I only noted that the line "Y.ID = ''" has no meaning since at the very next line Y.ID is assigned again.  :))
 

Please Log in or Create an account to join the conversation.

  • silvergem
  • Offline
  • Elite Member
  • Elite Member
  • TAFC|R12/R13
More
1 month 2 weeks ago #23412 by silvergem
Replied by silvergem on topic T24 DFE
Its a good practice to initialize the variable. Especially when you are using it on a loop.

Please Log in or Create an account to join the conversation.

  • VK
  • VK's Avatar
  • Offline
  • Platinum Member
  • Platinum Member
  • TAFC|R19/R21
More
1 month 2 weeks ago #23413 by VK
Replied by VK on topic T24 DFE
:)))

Assigning for the first time - isn't that an intialization?

I also didn't see a loop here.

I agree that if you have "init" section where all variables are initialized - that's a good practice. Assigning 2 different values on 2 consequent lines - is not.
 

Please Log in or Create an account to join the conversation.

Time to create page: 0.195 seconds