IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

Macro to receive a dataset from mvs/tso system


IBM Mainframe Forums -> IBM Tools
Post new topic   This topic is locked: you cannot edit posts or make replies.
View previous topic :: View next topic  
Author Message
omar

New User


Joined: 26 Dec 2005
Posts: 2

PostPosted: Wed Feb 01, 2006 3:22 am
Reply with quote

hi,
i'm using PCOMM 5.7 and want to make a vbscript macro to receive a dataset from mvs/tso system
i need the exact syntax please

i tried this but not working
autECLSession.autECLXfer.ReceiveFile"d:\file.txt", "'data.set.name", "ASCII CRLF"

thanks
Back to top
View user's profile Send private message
omar

New User


Joined: 26 Dec 2005
Posts: 2

PostPosted: Wed Feb 01, 2006 3:22 pm
Reply with quote

this the error i got

** ISPF screen input error - code =32 **

hope any one can help...
thanks
Back to top
View user's profile Send private message
Dinesh Kumar P

New User


Joined: 06 Jul 2008
Posts: 4
Location: Chennai, India

PostPosted: Wed Sep 30, 2009 3:00 pm
Reply with quote

ISPF screen input error occurs because the "ReceiveFile" method will send the [CLEAR] key to host and then sends the IND$FILE command. The above syntax should work fine when the session is in READY prompt.

If the requirement is to run it from within ISPF, we can use ISPF command shell (option 6 from primary option menu) and including "NOCLEAR" option to "ReceiveFile" method in addition to "ASCII CRLF"

Code:
autECLSession.autECLXfer.ReceiveFile"d:\file.txt", "'data.set.name", "ASCII CRLF NOCLEAR"


I know this is a pretty old post.. but hope this should help someone with similar problem who lands on this page.
Back to top
View user's profile Send private message
Jose Pena

New User


Joined: 08 Jul 2021
Posts: 1
Location: SPAIN

PostPosted: Thu Jul 08, 2021 12:17 am
Reply with quote

It helped me 13 years later.
Thank you!!
Back to top
View user's profile Send private message
Rohit Umarjikar

Global Moderator


Joined: 21 Sep 2010
Posts: 3048
Location: NYC,USA

PostPosted: Thu Jul 08, 2021 1:19 am
Reply with quote

Cool! Thanks.
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   This topic is locked: you cannot edit posts or make replies. View Bookmarks
All times are GMT + 6 Hours
Forum Index -> IBM Tools

 


Similar Topics
Topic Forum Replies
No new posts Sysplex System won't IPL at DR site I... All Other Mainframe Topics 2
No new posts FINDREP - Only first record from give... DFSORT/ICETOOL 3
No new posts Map Vols and Problem Dataset All Other Mainframe Topics 2
No new posts Allocated cylinders of a dataset DB2 12
No new posts Sort First/last record of a subset th... DFSORT/ICETOOL 7
Search our Forums:

Back to Top