Re: FTP VB dataset

2008-05-12 Thread Elardus Engelbrecht
Mullen, Patrick wrote:

I thought this would be straight forward, but I can't get it to work 
correctly. 
Trying to FTP a DSORG=VB dataset from one z/OS 1.7 system to another z/OS 
1.7 system. The dataset contains alphabetic and packed decimal data.

With no special commands, some of the packed data comes out translated 
into different hex values. Adding a 'bin' command resolves the translation, but 
now record structure is lost. Adding a 'quote site rdw' doesn't make any 
difference, but maybe that syntax is incorrect.

Any ideas?


Try this:

userid password
LOCSITE RDW
SITERDW
LOCSITE RECFM=VB
SITERECFM=VB  
LOCSITE LRECL=?
SITELRECL=? 
MODE B 
EBCDIC 

Then do either GET or PUT.

Then it is guaranteed both sides know what to expect.

HTH!

Groete / Greetings
Elardus Engelbrecht

--
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [EMAIL PROTECTED] with the message: GET IBM-MAIN INFO
Search the archives at http://bama.ua.edu/archives/ibm-main.html



FTP VB dataset

2008-05-09 Thread Mullen, Patrick
I thought this would be straight forward, but I can't get it to work
correctly. Trying to FTP a DSORG=VB dataset from one z/OS 1.7 system to
another z/OS 1.7 system. The dataset contains alphabetic and packed
decimal data. 

With no special commands, some of the packed data comes out translated
into different hex values. Adding a 'bin' command resolves the
translation, but now record structure is lost. Adding a 'quote site rdw'
doesn't make any difference, but maybe that syntax is incorrect.

Any ideas? 

--
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [EMAIL PROTECTED] with the message: GET IBM-MAIN INFO
Search the archives at http://bama.ua.edu/archives/ibm-main.html



Re: FTP VB dataset

2008-05-09 Thread McKown, John
 -Original Message-
 From: IBM Mainframe Discussion List 
 [mailto:[EMAIL PROTECTED] On Behalf Of Mullen, Patrick
 Sent: Friday, May 09, 2008 3:20 PM
 To: IBM-MAIN@BAMA.UA.EDU
 Subject: FTP VB dataset
 
 I thought this would be straight forward, but I can't get it to work
 correctly. Trying to FTP a DSORG=VB dataset from one z/OS 1.7 
 system to
 another z/OS 1.7 system. The dataset contains alphabetic and packed
 decimal data. 
 
 With no special commands, some of the packed data comes out translated
 into different hex values. Adding a 'bin' command resolves the
 translation, but now record structure is lost. Adding a 
 'quote site rdw'
 doesn't make any difference, but maybe that syntax is incorrect.
 
 Any ideas? 

discussed many time. Use the ftp command:

MODE B

--
John McKown
Senior Systems Programmer
HealthMarkets
Keeping the Promise of Affordable Coverage
Administrative Services Group
Information Technology

The information contained in this e-mail message may be privileged
and/or confidential.  It is for intended addressee(s) only.  If you are
not the intended recipient, you are hereby notified that any disclosure,
reproduction, distribution or other use of this communication is
strictly prohibited and could, in certain circumstances, be a criminal
offense.  If you have received this e-mail in error, please notify the
sender by reply and delete this message without copying or disclosing
it.  

--
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [EMAIL PROTECTED] with the message: GET IBM-MAIN INFO
Search the archives at http://bama.ua.edu/archives/ibm-main.html



Re: FTP VB dataset

2008-05-09 Thread Mullen, Patrick
Thanks, found it in the archives.


-Original Message-
From: IBM Mainframe Discussion List [mailto:[EMAIL PROTECTED] On
Behalf Of McKown, John
Sent: Friday, May 09, 2008 3:28 PM
To: IBM-MAIN@BAMA.UA.EDU
Subject: Re: FTP VB dataset


 -Original Message-
 From: IBM Mainframe Discussion List 
 [mailto:[EMAIL PROTECTED] On Behalf Of Mullen, Patrick
 Sent: Friday, May 09, 2008 3:20 PM
 To: IBM-MAIN@BAMA.UA.EDU
 Subject: FTP VB dataset
 
 I thought this would be straight forward, but I can't get it to work
 correctly. Trying to FTP a DSORG=VB dataset from one z/OS 1.7 
 system to
 another z/OS 1.7 system. The dataset contains alphabetic and packed
 decimal data. 
 
 With no special commands, some of the packed data comes out translated
 into different hex values. Adding a 'bin' command resolves the
 translation, but now record structure is lost. Adding a 
 'quote site rdw'
 doesn't make any difference, but maybe that syntax is incorrect.
 
 Any ideas? 

discussed many time. Use the ftp command:

MODE B

--
John McKown
Senior Systems Programmer
HealthMarkets
Keeping the Promise of Affordable Coverage
Administrative Services Group
Information Technology

The information contained in this e-mail message may be privileged
and/or confidential.  It is for intended addressee(s) only.  If you are
not the intended recipient, you are hereby notified that any disclosure,
reproduction, distribution or other use of this communication is
strictly prohibited and could, in certain circumstances, be a criminal
offense.  If you have received this e-mail in error, please notify the
sender by reply and delete this message without copying or disclosing
it.  

--
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [EMAIL PROTECTED] with the message: GET IBM-MAIN INFO
Search the archives at http://bama.ua.edu/archives/ibm-main.html

--
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [EMAIL PROTECTED] with the message: GET IBM-MAIN INFO
Search the archives at http://bama.ua.edu/archives/ibm-main.html



Re: FTP VB dataset

2008-05-09 Thread Ted MacNEIL
I know it's BF to reply to one's own post, but I guess I don't know the 
difference.
Is there a difference between:

BIN

MODE B

The OP said BIN wasn't working.

-
Too busy driving to stop for gas!

-Original Message-
From: Ted MacNEIL [EMAIL PROTECTED]

Date: Fri, 9 May 2008 20:37:43 
To:IBM Mainframe Discussion List ibm-main@bama.ua.edu
Subject: Re: FTP VB dataset


discussed many time. Use the ftp command:

MODE B

Maybe I read this wrong; didn't the OP say he was doing that and it didn't work?

-
Too busy driving to stop for gas!

--
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [EMAIL PROTECTED] with the message: GET IBM-MAIN INFO
Search the archives at http://bama.ua.edu/archives/ibm-main.html



Re: FTP VB dataset

2008-05-09 Thread Mansell, George R.
Since both are IBM mainframes try this, I've had good luck with it.
   Menu  Utilities  Compilers  Help 
 ¢¢¢
 BROWSETECGRM.JCL.PDS(FTPEXAMP) - 01.99   Line 0001 Col 001 080 
 Command ===  Scroll === CSR  
//TECGRMF  JOB 5740TC,G.MANSELL,MSGCLASS=O,PRTY=9,CLASS=3,  
//NOTIFY=SYSUID  TYPRUN=SCAN   
//STEP01   EXEC PGM=FTP,
// PARM='198.176.221.9  (EXIT TIMEOUT 20'   
//NETRCDD  DUMMY
//OUTPUT   DD  SYSOUT=* 
//INPUTDD  *
TECGRM  

BLOCK   
EBCDIC  
GET 'TES.CONNECT.DIRECT' 'TES.CONNECT.DIRECT.COPY'  
QUIT
/*  
//STEP02   EXEC PGM=FTP,COND=(0,NE,STEP01), 
// PARM='198.176.221.9  (EXIT TIMEOUT 20'   
//NETRCDD  DUMMY
//OUTPUT   DD  SYSOUT=* 
//INPUTDD  *
TECGRM  

-Original Message-
From: IBM Mainframe Discussion List [mailto:[EMAIL PROTECTED] On Behalf Of 
Mullen, Patrick
Sent: Friday, May 09, 2008 3:30 PM
To: IBM-MAIN@BAMA.UA.EDU
Subject: Re: FTP VB dataset

Thanks, found it in the archives.


-Original Message-
From: IBM Mainframe Discussion List [mailto:[EMAIL PROTECTED] On
Behalf Of McKown, John
Sent: Friday, May 09, 2008 3:28 PM
To: IBM-MAIN@BAMA.UA.EDU
Subject: Re: FTP VB dataset


 -Original Message-
 From: IBM Mainframe Discussion List 
 [mailto:[EMAIL PROTECTED] On Behalf Of Mullen, Patrick
 Sent: Friday, May 09, 2008 3:20 PM
 To: IBM-MAIN@BAMA.UA.EDU
 Subject: FTP VB dataset
 
 I thought this would be straight forward, but I can't get it to work
 correctly. Trying to FTP a DSORG=VB dataset from one z/OS 1.7 
 system to
 another z/OS 1.7 system. The dataset contains alphabetic and packed
 decimal data. 
 
 With no special commands, some of the packed data comes out translated
 into different hex values. Adding a 'bin' command resolves the
 translation, but now record structure is lost. Adding a 
 'quote site rdw'
 doesn't make any difference, but maybe that syntax is incorrect.
 
 Any ideas? 

discussed many time. Use the ftp command:

MODE B

--
John McKown
Senior Systems Programmer
HealthMarkets
Keeping the Promise of Affordable Coverage
Administrative Services Group
Information Technology

The information contained in this e-mail message may be privileged
and/or confidential.  It is for intended addressee(s) only.  If you are
not the intended recipient, you are hereby notified that any disclosure,
reproduction, distribution or other use of this communication is
strictly prohibited and could, in certain circumstances, be a criminal
offense.  If you have received this e-mail in error, please notify the
sender by reply and delete this message without copying or disclosing
it.  

--
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [EMAIL PROTECTED] with the message: GET IBM-MAIN INFO
Search the archives at http://bama.ua.edu/archives/ibm-main.html

--
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [EMAIL PROTECTED] with the message: GET IBM-MAIN INFO
Search the archives at http://bama.ua.edu/archives/ibm-main.html


--
NOTICE:  This electronic mail message and any attached files are confidential.  
The information is exclusively for the use of the individual or entity intended 
as the recipient.  If you are not the intended recipient, any use, copying, 
printing, reviewing, retention, disclosure, distribution or forwarding of the 
message or any attached file is not authorized and is strictly prohibited.  If 
you have received this electronic mail message in error, please advise the 
sender

Re: FTP VB dataset

2008-05-09 Thread Ted MacNEIL
discussed many time. Use the ftp command:

MODE B

Maybe I read this wrong; didn't the OP say he was doing that and it didn't work?

-
Too busy driving to stop for gas!

--
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [EMAIL PROTECTED] with the message: GET IBM-MAIN INFO
Search the archives at http://bama.ua.edu/archives/ibm-main.html



Re: FTP VB dataset

2008-05-09 Thread McKown, John
 -Original Message-
 From: IBM Mainframe Discussion List 
 [mailto:[EMAIL PROTECTED] On Behalf Of Ted MacNEIL
 Sent: Friday, May 09, 2008 3:38 PM
 To: IBM-MAIN@BAMA.UA.EDU
 Subject: Re: FTP VB dataset
 
 discussed many time. Use the ftp command:
 
 MODE B
 
 Maybe I read this wrong; didn't the OP say he was doing that 
 and it didn't work?
 
 -

NO. 

The bin ftp command and the mode b command are different. mode b
implies bin, but does more.

--
John McKown
Senior Systems Programmer
HealthMarkets
Keeping the Promise of Affordable Coverage
Administrative Services Group
Information Technology

The information contained in this e-mail message may be privileged
and/or confidential.  It is for intended addressee(s) only.  If you are
not the intended recipient, you are hereby notified that any disclosure,
reproduction, distribution or other use of this communication is
strictly prohibited and could, in certain circumstances, be a criminal
offense.  If you have received this e-mail in error, please notify the
sender by reply and delete this message without copying or disclosing
it.  

--
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [EMAIL PROTECTED] with the message: GET IBM-MAIN INFO
Search the archives at http://bama.ua.edu/archives/ibm-main.html



Re: FTP VB dataset

2008-05-09 Thread Dave Kopischke
On Fri, 9 May 2008 15:19:53 -0500, Mullen, Patrick wrote:

I thought this would be straight forward, but I can't get it to work
correctly. Trying to FTP a DSORG=VB dataset from one z/OS 1.7 system to
another z/OS 1.7 system. The dataset contains alphabetic and packed
decimal data.

With no special commands, some of the packed data comes out translated
into different hex values. Adding a 'bin' command resolves the
translation, but now record structure is lost. Adding a 'quote site rdw'
doesn't make any difference, but maybe that syntax is incorrect.

Any ideas?


Try quote site recfm=vb and see if it preserves it. You might also have to 
add LRECL and BLKSIZE.

--
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [EMAIL PROTECTED] with the message: GET IBM-MAIN INFO
Search the archives at http://bama.ua.edu/archives/ibm-main.html



Re: FTP VB dataset

2008-05-09 Thread John McKown
On Fri, 9 May 2008, Dave Kopischke wrote:

 
 Try quote site recfm=vb and see if it preserves it. You might also have to 
 add LRECL and BLKSIZE.

That should not be necessary when transferring between z/OS images. The 
z/OS ftp client sends a site command with the source dataset's 
attributes to the server, unless that has been turned off.

-- 
Q: What do theoretical physicists drink beer from?
A: An EIN stein.

Maranatha!
John McKown

--
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [EMAIL PROTECTED] with the message: GET IBM-MAIN INFO
Search the archives at http://bama.ua.edu/archives/ibm-main.html



Re: FTP VB dataset

2008-05-09 Thread Brian Peterson
If you are using a z/OS FTP client to PUT a file onto a z/OS FTP server:

Just use:
TYPE E
MODE B
PUT local_name [remote_name if different]

You will notice when you run the PUT command that the z/OS FTP client will 
automatically generate a SITE command telling the remote FTP server what 
DCB characteristics this file needs.  For example:

 EZA1460I Command: 
type e 
 EZA1701I  TYPE E 
 200 Representation type is Ebcdic NonPrint  
 EZA1460I Command: 
mode b 
 EZA1701I  MODE B   
 200 Data transfer mode is Block   
 EZA1460I Command: 
put local_name remote_name
 EZA1701I  SITE VARrecfm LRECL=27994 RECFM=VB BLKSIZE=27998
 200 SITE command was accepted
 EZA1701I  PORT 192,168,nn,nnn,14,100  
 200 Port request OK.
 EZA1701I  STOR remote_name   
 125 Storing data set remote_name   
 250 Transfer completed successfully.   
 EZA1617I 211 bytes transferred in 0.010 seconds.  Transfer rate 21.10 
Kbytes/sec.  
 EZA1460I Command:   


If you are using a z/OS FTP client to GET a file from a z/OS FTP server:

Use:
TYPE E
MODE B
LOCSITE all dcb information such as LRECL=nnn RECFM=VB BLKSIZE=27998
GET remote name [local_name if different]

The GET command does not generate an automatic LOCSITE command, so you 
have to specify the correct DCB characteristics before issuing the GET 
command, using LOCSITE.  Here's an example:

 EZA1460I Command: 
mode b
 EZA1701I  MODE B 
 200 Data transfer mode is Block  
 EZA1460I Command: 
type e   
 EZA1701I  TYPE E
 200 Representation type is Ebcdic NonPrint 
 EZA1460I Command: 
locsite lrecl=27994 blksize=27998 recfm=vb   
 EZA1460I Command:   
get remote_name local_name
 EZA1701I  PORT 192,168,nn,nnn,13,127
 200 Port request OK. 
 EZA1701I  RETR remote_name
 125 Sending data set remote_name
 250 Transfer completed successfully.   
 EZA1617I 211 bytes transferred in 0.060 seconds.  Transfer rate 3.52 
Kbytes/sec.

Bits and pieces of this are scattered throughout the z/OS IP User's Guide.  
From the Guide:

Table 12. Recommended methods for data transfer
Transfer between host types  TYPE MODE
EBCDIC and EBCDIC -- binary data   EBCDIC Block

and:

Sometimes the client requires DCB information before it opens a data set. 
Among the situations where this is true are:

o  Reading and writing variable-length records while preserving the RDW 

Brian

On Fri, 9 May 2008 17:07:24 -0500, Dave Kopischke wrote:

On Fri, 9 May 2008 15:19:53 -0500, Mullen, Patrick wrote:

I thought this would be straight forward, but I can't get it to work
correctly. Trying to FTP a DSORG=VB dataset from one z/OS 1.7 system to
another z/OS 1.7 system. The dataset contains alphabetic and packed
decimal data.

With no special commands, some of the packed data comes out translated
into different hex values. Adding a 'bin' command resolves the
translation, but now record structure is lost. Adding a 'quote site rdw'
doesn't make any difference, but maybe that syntax is incorrect.

Any ideas?


Try quote site recfm=vb and see if it preserves it. You might also have to
add LRECL and BLKSIZE.

--
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [EMAIL PROTECTED] with the message: GET IBM-MAIN INFO
Search the archives at http://bama.ua.edu/archives/ibm-main.html



Re: FTP VB dataset

2008-05-09 Thread Dave Kopischke
On Fri, 9 May 2008 17:58:09 -0500, John McKown wrote:

On Fri, 9 May 2008, Dave Kopischke wrote:


 Try quote site recfm=vb and see if it preserves it. You might also have to
 add LRECL and BLKSIZE.

That should not be necessary when transferring between z/OS images. The
z/OS ftp client sends a site command with the source dataset's
attributes to the server, unless that has been turned off.


Very true. But something was amiss with that conversation. This was intended 
as one way to get beyond it.

I always thought the z/OS ftp client would be able to automatically sense 
another z/OS client and act accordingly. Apparently not in this case.

--
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [EMAIL PROTECTED] with the message: GET IBM-MAIN INFO
Search the archives at http://bama.ua.edu/archives/ibm-main.html



Re: FTP VB dataset

2008-05-09 Thread Paul Gilmartin
On Fri, 9 May 2008 16:05:22 -0500, McKown, John wrote:

 -Original Message-
 [mailto:[EMAIL PROTECTED] On Behalf Of Ted MacNEIL
 Sent: Friday, May 09, 2008 3:38 PM

 discussed many time. Use the ftp command:

 MODE B

 Maybe I read this wrong; didn't the OP say he was doing that
 and it didn't work?

No.  IIRC, the OP said he did something like QUOTE SITE MODE B,
which puts the server but not the client in that mode; trouble is
almost certain.

BTW, IIRC, the OP said his data set was DSORG=VB.  I was unaware
that DSORG was supported.

 -

NO.

The bin ftp command and the mode b command are different. mode b
implies bin, but does more.

No.  BIN is TYPE I; EBCDIC is TYPE E; BLOCK is MODE B.  the
combination:
   EBCDIC  (or TYPE E) and
   BLOCK   (or MODE B)

... are compatible, and recommended.

(Did I get that right?)

-- gil

--
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [EMAIL PROTECTED] with the message: GET IBM-MAIN INFO
Search the archives at http://bama.ua.edu/archives/ibm-main.html