MVSFORUMS.com Forum Index MVSFORUMS.com
A Community of and for MVS Professionals
 
 FAQFAQ   SearchSearch   Quick Manuals   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

RECEIVE in batch not working properly

 
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> TSO and ISPF
View previous topic :: View next topic  
Author Message
yadav2005
Intermediate


Joined: 10 Jan 2005
Posts: 348
Topics: 144

PostPosted: Tue Jun 01, 2010 5:15 am    Post subject: RECEIVE in batch not working properly Reply with quote

Hi,

I Transmitted a dataset from Region A to B and was successfull and my below code:
Code:

//STEP010  EXEC PGM=IKJEFT01                                           
//SYSPRINT DD SYSOUT=*                                                 
//SYSOUT   DD SYSOUT=*                                                 
//SYSTSPRT DD SYSOUT=*                                                 
//SYSTSIN  DD *                                                         
  TRANSMIT REGIONB.USERID DA('PROD.PDS(A)')               
/*                                                                     
//                                                                     

But when I am trying to receive the same in batch I am facing problems:
Code:

//STEP010  EXEC PGM=IKJEFT01                                         
//SYSPRINT DD SYSOUT=*                                               
//SYSOUT   DD SYSOUT=*                                               
//SYSTSPRT DD SYSOUT=*                                               
//SYSTSIN  DD *                                                       
  RECEIVE INDATASET('PROD.PDS(A)')                       
/*                                                                   
//                                                                   

I have also tried as below:
Code:

//STEP010  EXEC PGM=IKJEFT01                                         
//SYSPRINT DD SYSOUT=*                                               
//SYSOUT   DD SYSOUT=*                                               
//SYSTSPRT DD SYSOUT=*                                               
//SYSTSIN  DD *                                                       
  RECEIVE DATASET('PROD.PDS(A)')                       
/*                                                                   
//                                                                   

Please help me what is the problem.
Back to top
View user's profile Send private message
yadav2005
Intermediate


Joined: 10 Jan 2005
Posts: 348
Topics: 144

PostPosted: Tue Jun 01, 2010 8:56 am    Post subject: Reply with quote

I tried and I got it correctly.
Back to top
View user's profile Send private message
papadi
Supermod


Joined: 20 Oct 2009
Posts: 594
Topics: 1

PostPosted: Tue Jun 01, 2010 2:28 pm    Post subject: Reply with quote

Good to hear it is working - what was the problem?

The answer may help someone else later Very Happy
_________________
All the best,

di
Back to top
View user's profile Send private message
Franko
Beginner


Joined: 04 Feb 2010
Posts: 8
Topics: 0
Location: Kansas City

PostPosted: Fri Jun 04, 2010 1:40 pm    Post subject: Reply with quote

Since yadav2005 hasn't shared his solution with us,
I think his reply would be
Code:

RECEIVE DS('PROD.PDS(A)')
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Bill Dennis
Advanced


Joined: 03 Dec 2002
Posts: 579
Topics: 1
Location: Iowa, USA

PostPosted: Fri Jun 04, 2010 3:42 pm    Post subject: Reply with quote

Sorry, Franko. The DSN you show was what was originally transmitted, not what is waiting to be received.

yadav2005 sent his data via JES spool to REGIONB.USERID. To receive it, USERID would LOGON to REGIONB and just do the RECEIVE command. The spool file will be found and a prompt would ask for the output DSN to receive into.

Experiment by doing a TRANSMIT to N1.yourid where N1 is probably your own system NODE number and use your own user-id. Then do a RECEIVE.
_________________
Regards,
Bill Dennis

Disclaimer: My comments on this foorum are my own and do not represent the opinions or suggestions of any other person or business entity.
Back to top
View user's profile Send private message
Franko
Beginner


Joined: 04 Feb 2010
Posts: 8
Topics: 0
Location: Kansas City

PostPosted: Mon Jun 14, 2010 4:37 pm    Post subject: Reply with quote

Thanks Bill. But in my experience, you can send and receive the same dataset name. My example should have indicated the 2 steps (1=receive, 2=ds('prod.pds(a)'), but it is still correct. My choice of dataset names was based on his prior example in his receive commands. I use these commands about a dozen times a day.
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> TSO and ISPF All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


MVSFORUMS
Powered by phpBB © 2001, 2005 phpBB Group