Joined: 11 Dec 2008 Posts: 2 Location: Kansas - United States
Could some one please help me with my requirements in Mainframe FOCUS
1. I have a Alpha numeric field of length 12. The field will contain a combination of numbers and characters. It will always be a number preceded with a character. The field may be of any length. For Eg: 1A, 1D, 10A, 100C, 5335D, 50000LL, 50000CC#.
My requirements is to just get the number out of the field. i don't want the character. for Eg, if it 10CC then i just need to print 10 in my output.
Iam facing lot of difficulties in getting a simple logic. all my logic's end up in becoming complex. Iam not suppose to use FILEAID also.
Is there any functionality in FOCUS that i can use like MASK, CTRAN. The problem is i need to replace or remove multiple characters.