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 

TSO/E 'OPUT' command doesn't retrieve satisfactory file

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


Joined: 15 Feb 2005
Posts: 1
Topics: 1

PostPosted: Tue Feb 15, 2005 9:02 pm    Post subject: TSO/E 'OPUT' command doesn't retrieve satisfactory file Reply with quote

I run a 'JAR' command in z/OS to unzip an archive member retrieved from a web URL. The unzipped file size agrees precisely with the size of the same file archive member unzipped if done in Windows.
I run a JCL executing the TSO/E utility and use 'many' variations of 'OPUT/OGET to write the unzipped file to the MVS side .....(text, binary, convert(yes/no etc.)
but none deliver a 'useable' (readable by ordinary Cobol pgm.) result.

Yet, if I bring it over as 'binary'....then download it to Win 2000 using our
QVS3270 terminal emulator...then upload it back to MVS....a magical transformation has occurred....it now has the 'expected' characteristics,
variable blocked records that respect CRLF.

Is there no aspect of OPUT/OGET that can bring over the file with the same characteristics it has after downlaod/upload ........directly ?
I am believing that if the 'JAR' command was 'not' really the equivalent
of WinZip 'unzip' command....I would not get exactly equal file sizes for output....nor would the download/upload finally create the 'useable' file
I would prefer to get without those two steps.l
_________________
John F. Dutcher, Principal Consultant, Keane, Inc.
Back to top
View user's profile Send private message Send e-mail
semigeezer
Supermod


Joined: 03 Jan 2003
Posts: 1014
Topics: 13
Location: Atlantis

PostPosted: Wed Feb 16, 2005 12:25 am    Post subject: Reply with quote

The file as unpacked is in ASCII or UTF-8 or some other encoding. The upload does the conversion to EBCDIC. You can use iconv in the shell to do the translation at the host. For example:
Code:
iconv -f iso8859-1 -t ibm-1047 filename > converted-filename
Back to top
View user's profile Send private message Visit poster's website
jexcellus
Beginner


Joined: 16 Feb 2005
Posts: 1
Topics: 0

PostPosted: Wed Feb 16, 2005 7:19 am    Post subject: Reply with quote

semigeezer wrote:
The file as unpacked is in ASCII or UTF-8 or some other encoding. The upload does the conversion to EBCDIC. You can use iconv in the shell to do the translation at the host. For example:
Code:
iconv -f iso8859-1 -t ibm-1047 filename > converted-filename
semigeezer ....... you really have your act together ...... I really wondered if
this could be done at all. 'iconv' works like a charm.

John Dutcher
_________________
John F. Dutcher, Principal Consultant, Keane, Inc.
Back to top
View user's profile Send private message Send e-mail
semigeezer
Supermod


Joined: 03 Jan 2003
Posts: 1014
Topics: 13
Location: Atlantis

PostPosted: Wed Feb 16, 2005 8:21 am    Post subject: Reply with quote

I always wondered how to handle that and your question prompted me to look it up. I once wrote an ISPF browse interface to browse ASCII files on MVS directly using the BRIF service. It was not really a trivial exercise.
Back to top
View user's profile Send private message 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