I am new to python, I found this thread most suited for my query. How do I connect to mainframe server using python3, i know there is ftplib to connect but I am not able to find out how I provide following info to logon: 1. region(development) 2. username, password 3. account
whenever I connect to mainframe I should enter a region name before I can be prompted to enter username and password. And then I must enter an account name.
Please let me know if further information is required. I appreciate any help that may come from anyone.
I tried to use hllapi function :
h_func = c_int(1)
h_text = c_wchar_p("F")
h_len = c_int(1)
h_ret = c_int(999)
#Function calling
hllapi(byref(h_func), h_text, byref(h_len), byref(h_ret))
output: 1 F 1 1 --> why am I getting return code 1? Isit because I used c_wchar_p instead of c_char_p? If I use c_char_p('F') it does not accept a charater. What could be the reason?