You're almost there! Please answer a few more questions for access to the Applications content. Complete registration
Interested in joining? Complete your registration by providing Areas of Interest here. Register

Generate sequence number in file

edited Aug 1, 2019 5:37AM in Integration 15 comments

Content

Hi,

I have a requirement where in we are reading a source file from FTP location and creating another target file. In the source File i have one column called Transaction number and target file should have two columns Transaction number, line number. If transaction number are duplicates in the rows in source then line numbers should contains sequence values in target file: For example:

Source file:

Transaction number

12
12
12
13
13
14
14
14
14

Target file

Transaction number, line number
12,1
12,2
12,3
13,1
13,2
14,1
14,2
14,3
14,4

Version

19.3.1.0.0
Tagged:

Howdy, Stranger!

Log In

To view full details, sign in.

Register

Don't have an account? Click here to get started!