Quote:
Originally Posted by
jim mcnamara
Your directions contradict each other. What EXACTLY determines the start and and of the account field?
It cannot be "MNT" that occurs at position 1 in both examples.
Well, I do apologise for giving you a hard time. Actually i was in a hurry
For file INPUT, it takes the following format
MNT-BANK-NUMBERO:006,00:N
MNT-515-ACCOUNT-NUMBERO:018,00:N
MNT-515-DESCRIPTIONO:045:C
For file OUTPUT, it takes the following format
D-CHECK-NUM:012:C
D-COMMENT-LINE1:020:C
D-COMMENT-LINE2:020:C
D-COMMENT-LINE3:020:C
D-TRAN-ORDER:012:C
MON-ACCOUNT:018,00:N
MON-BANK-NBR:006,00:
MON-BLK-ITEM-SEQ:006,00:N
MON-BLK-SEQ:004,00:N
Here, for the file INPUT we have 3 fields
MNT-BANK-NUMBERO:006,00:N, MNT-515-ACCOUNT-NUMBERO:018,00:N and MNT-515-DESCRIPTIONO:045:C and so on.
For MNT-BANK-NUMBERO:006,00:N field, the bank number is of 6(1-6) characters in length.
For MNT-515-ACCOUNT-NUMBERO:018,00:N field, the account number is of 18(7-24) characters in length.
Here, for the file OUTPUT we have 2 fields
MON-ACCOUNT:018,00:N, MON-BANK-NBR:006,00:N:018,00:N and so on.
For MON-ACCOUNT:018,00:N field, the account number is of 18(86-103) characters in length.
For MON-BANK-NBR:006,00:N:018,00:N field, the bank number is of 6(104-109) characters in length.
Now my requirment is to find the starting position of each BANK NUMBER and the ACCOUNT NUMBER side by side
Typical Output looks like this
INPUT,1,7,
OUTPUT, 86, 104
I hope this gives you a clear picture. If not please let me know. Thanks
---------- Post updated at 10:59 AM ---------- Previous update was at 10:44 AM ----------
Help Help Help