View previous topic :: View next topic |
Author |
Message |
wangxi875230 Beginner
Joined: 19 Jan 2008 Posts: 7 Topics: 2
|
Posted: Wed May 26, 2010 11:43 am Post subject: TSO command TRANSMIT can not transmit empty file |
|
|
I want to ask a question that if TSO command TRANSMIT can not transmit an empty dataset(PS) or not?
and if yes,how to transmit the empty file? |
|
Back to top |
|
 |
Nic Clouston Advanced
Joined: 01 Feb 2007 Posts: 1075 Topics: 7 Location: At Home
|
Posted: Wed May 26, 2010 12:01 pm Post subject: |
|
|
What happens if you try it?
I can see why you might want to send an 'empty' file but it would be better if the file had headers and trailers with a detail record count of 0 so that the receiver knows that the empty file is valid. _________________ Utility and Program control cards are NOT, repeat NOT, JCL. |
|
Back to top |
|
 |
wangxi875230 Beginner
Joined: 19 Jan 2008 Posts: 7 Topics: 2
|
Posted: Wed May 26, 2010 12:16 pm Post subject: |
|
|
now I can not acess MVS and I see this issue from a customer's reply,so I just ask for help...for the season why I have to send empty file - because it is generated automatically so...
help!!! |
|
Back to top |
|
 |
kolusu Site Admin

Joined: 26 Nov 2002 Posts: 12378 Topics: 75 Location: San Jose
|
Posted: Wed May 26, 2010 12:17 pm Post subject: |
|
|
wangxi875230,
You canNOT send an empty file using TSO transmit command. You may try FTP
Kolusu |
|
Back to top |
|
 |
wangxi875230 Beginner
Joined: 19 Jan 2008 Posts: 7 Topics: 2
|
Posted: Wed May 26, 2010 12:26 pm Post subject: |
|
|
Hi Kolusu
thanks for advice,and the problem is that in different environments PTF utility may be different and in my application  |
|
Back to top |
|
 |
kolusu Site Admin

Joined: 26 Nov 2002 Posts: 12378 Topics: 75 Location: San Jose
|
Posted: Wed May 26, 2010 12:29 pm Post subject: |
|
|
wangxi875230,
May be you need to follow Nick's advice of sending the file with a header and trailer at the end which contains the number of records sent. This will help validating that every record is transferred correctly and the receiving system can drop these 2 records after validation.
Kolusu |
|
Back to top |
|
 |
wangxi875230 Beginner
Joined: 19 Jan 2008 Posts: 7 Topics: 2
|
Posted: Wed May 26, 2010 12:30 pm Post subject: |
|
|
wangxi875230 wrote: | Hi Kolusu
thanks for advice,and the problem is that in different environments PTF utility may be different and in my application  |
should be :
Hi Kolusu
thanks for your advice,and the problem is that in different environments PTF utility may be different and in my program TRANSMIT is contained in REXX program,so...
And if send a empty dataset the RC = 4 or other value for this command? |
|
Back to top |
|
 |
wangxi875230 Beginner
Joined: 19 Jan 2008 Posts: 7 Topics: 2
|
Posted: Wed May 26, 2010 8:54 pm Post subject: |
|
|
I got the message when transmitting a null dateset:
TRANSMIT command terminated. Input dataset unusable +
Null sequential datasets cannot be transmitted
***
how to work out this problem and make the transmit successfully?  |
|
Back to top |
|
 |
papadi Supermod
Joined: 20 Oct 2009 Posts: 594 Topics: 1
|
Posted: Thu May 27, 2010 1:14 pm Post subject: |
|
|
Quote: | You canNOT send an empty file using TSO transmit command. | This seems rather clear. . .
You need to change the process to something that does work.
Quote: | and in my program TRANSMIT is contained in REXX program,so... | Possibly, this is where to start. _________________ All the best,
di |
|
Back to top |
|
 |
|
|