07-15-2008 6:58 AM
can anybody tell me the logic to convert ssn number 421648951 to 421-64-8951.Plz answer urgently,points will be awarded undoubtedly.
07-15-2008 7:10 AM
Ajay,
*421648951 to 421-64-8951
DATA:TEST1(20) type C VALUE '421648951',
TEST2(20) type c,
TEST3(20) type c,
TEST4(20) type c,
TEST5(25) TYPE C.
move test1+0(3) to test2.
move test1+3(2) to test3.
move test1+5(6) to test4.
concatenate test2 '-' test3 '-' test4 into test5.
write:/ test5.
K.Kiran.
07-15-2008 7:03 AM
hi,
concatenate ssn0(3) ssn3(2) ssn+5 into ssn1 separated by '-'.
Regards,
Subramanian
07-15-2008 7:10 AM
Ajay,
*421648951 to 421-64-8951
DATA:TEST1(20) type C VALUE '421648951',
TEST2(20) type c,
TEST3(20) type c,
TEST4(20) type c,
TEST5(25) TYPE C.
move test1+0(3) to test2.
move test1+3(2) to test3.
move test1+5(6) to test4.
concatenate test2 '-' test3 '-' test4 into test5.
write:/ test5.
K.Kiran.
07-15-2008 7:18 AM
Hi,
Check this forms in the standard program MP00024U_CE.
CONVERT_SSN_TO_PERID
CONVERT_SSN
cheers,
Jack.
07-15-2008 7:21 AM
hi,
Data:
TEST1(20) type C VALUE '421648951',
TEST2(5) type c,
TEST3(5) type c,
TEST4(5) type c,
TEST5(15) TYPE C.
test2 = test1+0(3) .
test3 = test1+4(2) .
ttest4 = test1+6(9) .
concatenate test2 test3 test4 into test5 separated by '-'.
write:/ test5.