Sandy Blondino
15th August 2008, 20:33
Hello Everyone,
I'm having trouble with an AFS session. I've written several before but never ran into this problem.
After filling in the to and from fields with a value, the value is blank, so the close project update never works.
Thanks for any advice.
Sandy
Here is the code snippet.
while errf = 0
nbrfields = string.scan(input.rec, "%s", tipcs020.cprj)
|read the next record from the text file
temp.proj = tipcs020.cprj
|call tipcs2250m000 Close Project to close the sub project
stpapi.put.field("tipcs2250m000", "cprj.f", temp.proj)
stpapi.put.field("tipcs2250m000", "cprj.t", temp.proj)
stpapi.set.report("tipcs2250m000", "rtipcs225001000", "D", err.msg)
stpapi.set.report("tipcs3250s000", "rtipcs325001000", "D", err.msg)
stpapi.continue.process("tipcs2250m000", err.msg)
stpapi.print.report("tipcs2250m000", err.msg)
stpapi.print.report("tipcs3250s000", err.msg)
stpapi.end.session("tipcs3250s000")
stpapi.end.session("tipcs2250m000")
errf = seq.gets(input.rec, 6, fp)
endwhile
I'm having trouble with an AFS session. I've written several before but never ran into this problem.
After filling in the to and from fields with a value, the value is blank, so the close project update never works.
Thanks for any advice.
Sandy
Here is the code snippet.
while errf = 0
nbrfields = string.scan(input.rec, "%s", tipcs020.cprj)
|read the next record from the text file
temp.proj = tipcs020.cprj
|call tipcs2250m000 Close Project to close the sub project
stpapi.put.field("tipcs2250m000", "cprj.f", temp.proj)
stpapi.put.field("tipcs2250m000", "cprj.t", temp.proj)
stpapi.set.report("tipcs2250m000", "rtipcs225001000", "D", err.msg)
stpapi.set.report("tipcs3250s000", "rtipcs325001000", "D", err.msg)
stpapi.continue.process("tipcs2250m000", err.msg)
stpapi.print.report("tipcs2250m000", err.msg)
stpapi.print.report("tipcs3250s000", err.msg)
stpapi.end.session("tipcs3250s000")
stpapi.end.session("tipcs2250m000")
errf = seq.gets(input.rec, 6, fp)
endwhile