View previous topic :: View next topic |
Author |
Message |
yadav2005 Intermediate

Joined: 10 Jan 2005 Posts: 348 Topics: 144
|
Posted: Tue Jun 01, 2010 5:15 am Post subject: RECEIVE in batch not working properly |
|
|
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 |
|
 |
yadav2005 Intermediate

Joined: 10 Jan 2005 Posts: 348 Topics: 144
|
Posted: Tue Jun 01, 2010 8:56 am Post subject: |
|
|
I tried and I got it correctly. |
|
Back to top |
|
 |
papadi Supermod
Joined: 20 Oct 2009 Posts: 594 Topics: 1
|
Posted: Tue Jun 01, 2010 2:28 pm Post subject: |
|
|
Good to hear it is working - what was the problem?
The answer may help someone else later  _________________ All the best,
di |
|
Back to top |
|
 |
Franko Beginner

Joined: 04 Feb 2010 Posts: 8 Topics: 0 Location: Kansas City
|
Posted: Fri Jun 04, 2010 1:40 pm Post subject: |
|
|
Since yadav2005 hasn't shared his solution with us,
I think his reply would be
Code: |
RECEIVE DS('PROD.PDS(A)')
|
|
|
Back to top |
|
 |
Bill Dennis Advanced

Joined: 03 Dec 2002 Posts: 579 Topics: 1 Location: Iowa, USA
|
Posted: Fri Jun 04, 2010 3:42 pm Post subject: |
|
|
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 |
|
 |
Franko Beginner

Joined: 04 Feb 2010 Posts: 8 Topics: 0 Location: Kansas City
|
Posted: Mon Jun 14, 2010 4:37 pm Post subject: |
|
|
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 |
|
 |
|
|