Hi,
I have PX 6.0.
How to generate a an alphanumeric seq in a job?
for eg:-
Requirement1
-AA
-AB
-AC
-AD
Requirement2 (alphabets concated with a range of numbers, say till 3)
-AA1
-AA2
-AA3
-AB1
-AB2
-AB3..
Please reply asap.
Thanks.
Nitin
how to generate an alphanumeric seq
Moderators: chulett, rschirm, roy
-
- Participant
- Posts: 21
- Joined: Wed Oct 01, 2003 11:53 am
-
- Participant
- Posts: 54607
- Joined: Wed Oct 23, 2002 10:52 pm
- Location: Sydney, Australia
- Contact:
-
- Premium Member
- Posts: 39
- Joined: Tue May 20, 2003 3:36 am
- Location: Singapore
Nitin,
It's easy in DS Server... you just need to play around with the ASCII codes to generate this kind of sequence.
But the PX solution may be a little bit more tricky as BASIC routines are not directly runnable in PX. The reason is PX is written in C while DS Server routines are written in UV BASIC...
A possible work-around is to write a special routine in DS Server and call it from a Shared Container in PX... or simply, create a Server job to handle this process. The DS Server engine is also available at your disposal in DSPX 6.0 anyway.
Regards,
vladimir
It's easy in DS Server... you just need to play around with the ASCII codes to generate this kind of sequence.
But the PX solution may be a little bit more tricky as BASIC routines are not directly runnable in PX. The reason is PX is written in C while DS Server routines are written in UV BASIC...
A possible work-around is to write a special routine in DS Server and call it from a Shared Container in PX... or simply, create a Server job to handle this process. The DS Server engine is also available at your disposal in DSPX 6.0 anyway.
Regards,
vladimir
Hi.
You could build this sequence using a _sequential_ PX transformer stage. You can set a stage var to the alphabet string (e.g. "ABCDEFGH..") and use substrings to grab the letter that you need for your index. You would need two other stage vars to keep track of the indexes you pass to the substring function.
-BP
You could build this sequence using a _sequential_ PX transformer stage. You can set a stage var to the alphabet string (e.g. "ABCDEFGH..") and use substrings to grab the letter that you need for your index. You would need two other stage vars to keep track of the indexes you pass to the substring function.
-BP