Hi,
I'm trying to use the autECLXfer.ReceiveFile method from a terminal macro (using VB-script). Tried to google for examples and found some shreds.
Created the macro below:
Code:
[PCOMM SCRIPT HEADER]
LANGUAGE=VBSCRIPT
DESCRIPTION=Test view menu
[PCOMM SCRIPT SOURCE]
OPTION EXPLICIT
autECLSession.SetConnectionByName(ThisSessionName)
REM This line calls the macro subroutine
subSub1_
sub subSub1_()
autECLSession.autECLOIA.WaitForAppAvailable
Dim strFileName, strDataSet, strOptions
strFileName = "Y:\b.MFData\Testxx.txt"
strDataSet = "'DATA.SET(TESTXX)'"
strOptions = "CRLF ASCII NOCLEAR"
On Error Resume Next
autECLSession.autECLXfer.ReceiveFile strFileName, strDataSet, strOptions
If Err <> 0 Then
MsgBox ("FOUT:" & Chr(13) & "(" & Err.Number & "-" & Err.Description & ")")
End If
On Error Goto 0
End Sub
It seems to work (executed on a TSO session using PCOMM, ispf option 6).
However: I do not find my file in the directory that I stated.
... when using the SendFile method, I can send files from the directory towards a dataset...
That strikes me as weird...
Can any of you help me spot the thing I do wrong? It's probably something very simple, but just beyond my reach...
By the way: I want to use VB-variables in the call, so I can use it more flexibly...
Thanks in advance!
[/u]
_________________
That's All Folks,
Harald van Kesteren
Read more: http://ibmmainframes.com/viewtopic.php? ... z4e85ljwUm
Receive file using a PCOMM macro...
-
- Posts: 1
- Joined: Fri May 08, 2009 6:22 pm
- Skillset: CICS
COBOL
MQ
IDMS - Referer: Google search
-
- Similar Topics
- Replies
- Views
- Last post
-
-
PCOMM 64-bit Automation Macro failing to update WindowsTitle
by suriPCOMM » Tue Aug 31, 2021 5:33 am » in Simulators & Emulators - 0
- 7943
-
by suriPCOMM
View the latest post
Tue Aug 31, 2021 5:33 am
-
-
- 2
- 1331
-
by RazVorox
View the latest post
Tue Dec 05, 2023 11:06 am
-
- 9
- 2049
-
by futohomok
View the latest post
Wed Jun 21, 2023 1:26 pm
-
- 4
- 1327
-
by Jeff R
View the latest post
Fri Dec 30, 2022 8:51 pm
-
-
I can't get the LINK macro working properly
by chong_zhou » Fri Aug 21, 2020 10:53 pm » in Assembler - 13
- 6818
-
by steve-myers
View the latest post
Thu Aug 27, 2020 1:06 am
-