Hello all,
I'm attempting to automate some mainframe admin functions that I'm responsible for. When creating an id in some environments it's necessary to enter a text string at the ready prompt but but each line has to be exactly 80 characters including spaces. Typically the length of the enitre string is on the order of 600 characters and includes letters numbers and symbols, and it's imperative that each element be separated by a single space.
example of the string :
INSERT testid000 NAME(TESTID000) PASSWORD(xxxxxxxx) IMS JOB TSO KERB-VIO(0) MAX DAYS(35) MINDAYS(3) PSWD-DAT(01/12/12)
PSWD-INV(0) PSWD-VIO(0) DFT-PFX(testid000) INTERCOM JCL LGN-ACCT LGN-DEST LGN-MSG LGN-PROC LGN-RCVR LGN-SIZE LGN-TIME MAIL MODE MSGID NOTICES PAUSE PROMPT TSOACCT(loca-HU7001Z) TSOPROC(TSOP) TSOUNIT(SYSDA) VLD-ACCT VLD-PROC WTP CICSCL(404040) CICSID(000) CICSUFLD(00000) IDLE(30) UID01(N) UID02(A) UID03(D) UID04(S) UID05(A) UID06() UID07() UID08() UID09() UID10() UID11()
UID12() DSA(NORTH AMERICAN DSA) DSALID(NADSA) EMPID(123456789) LIDTYPE(E) LOCTN(building) NEWS XEMAIL(testid000@domain.com)
I'm attempting to do two things here. First is to build a form to allow the elements in brackets in the example to be populated based on user input and second have the entire string output to a text box that is preformated to force each line to wrap at exactly 80 characters regardless of where it falls. The result being I open the excel sheet, enter some data on a form, press a button and the macro preformats the output string into perfect 80 character lines. I want to be able to copy the output all in one shot and simply paste it into the emulator window knowing that each line is already aligned.
I know this is a long post and I'm really most interested in the preformatting part ..I'm fairly confident I can build the form and tranlate the user data into the output string.
Thanks
Bookmarks