I am trying to check whether a string is numeric or not so for that I'm using SSCANF but every time its giving me return a 0 . Not sure what I'm doing wrong!
Below is my code:
D sscanf pr 10i 0 extproc('sscanf')
D source * value options(*string)
D format * value options(*string)
D Variable1 * value options(*nopass)
D Variable2 * value options(*nopass)
D number s 100a varying inz(*blanks)
D i s 10i 0
I am always getting i=0 ideally it should be 1234 ... Please suggest!
Free Guide: Managing storage for virtual environments
Complete a brief survey to get a complimentary 70-page whitepaper featuring the best methods and solutions for your virtual environment, as well as hypervisor-specific management advice from TechTarget experts. Don’t miss out on this exclusive content!