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 

ftp of the file in binary mode into mainframes

 
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Job Control Language(JCL)
View previous topic :: View next topic  
Author Message
tomehta
Beginner


Joined: 19 Dec 2003
Posts: 17
Topics: 5

PostPosted: Fri Dec 19, 2003 9:58 am    Post subject: ftp of the file in binary mode into mainframes Reply with quote

Hi,
I am ftping a file which is in binary into the mainframes. it is appending crlf at the end instead of the new line. thus i am getting the record like
aaaaaaaaaaa[b]crlf[/b]bbbbbbbbbb[b]crlf[/b] insted of
insted of
aaaaaaaaaaa
bbbbbbbbbb
the records come in the single line till the max length defined of the dataset. plese help.
rgds
rohit
Back to top
View user's profile Send private message
kolusu
Site Admin
Site Admin


Joined: 26 Nov 2002
Posts: 12378
Topics: 75
Location: San Jose

PostPosted: Fri Dec 19, 2003 10:15 am    Post subject: Reply with quote

Rohit,

Send it as a text file and see if it works.

Kolusu
_________________
Kolusu
www.linkedin.com/in/kolusu
Back to top
View user's profile Send private message Send e-mail Visit poster's website
ofer71
Intermediate


Joined: 12 Feb 2003
Posts: 358
Topics: 4
Location: Israel

PostPosted: Sat Dec 20, 2003 2:07 am    Post subject: Reply with quote

Which utility are you using to FTP the file ? (DOS FTP / Emulation build-in / JCL / WS-FTP / Explorer FTP etc...)

O.
________
volcano vaporizer


Last edited by ofer71 on Sat Feb 05, 2011 11:09 am; edited 1 time in total
Back to top
View user's profile Send private message Send e-mail
tomehta
Beginner


Joined: 19 Dec 2003
Posts: 17
Topics: 5

PostPosted: Mon Dec 22, 2003 9:06 am    Post subject: Reply with quote

i am using jcl for ftping that as i want it in batch mode.
Back to top
View user's profile Send private message
mayuresh.tendulkar
Beginner


Joined: 25 Apr 2003
Posts: 31
Topics: 6
Location: Pune

PostPosted: Tue Dec 23, 2003 1:45 am    Post subject: Reply with quote

Hello tomehta,

A text file of ASCII data type contains displayable characters; a carriage return (X'0D') and line feed (X'0A') are used to delimit a line. A text file of EBCDIC data type contains displayable characters; the new-line character (X'15') is used to delimit a line.

A binary file contains a contiguous stream of bits with no line delimiters.

Thats why you are not able to see the records the way you want to see (in multiple lines)

So to eliminate this, send the file as a TEXT file as told by kolusu.

Hope this helps.

Regards

Mayuresh Tendulkar
Back to top
View user's profile Send private message Send e-mail
Bee_bop
Beginner


Joined: 12 Dec 2005
Posts: 29
Topics: 15
Location: Singapore

PostPosted: Fri Sep 21, 2007 1:41 am    Post subject: Reply with quote

Hi All,

Follow-up question on this. I want to FTP TXT file to another file in binary format through JCL.

But using FTP shows your User-ID and Password (see sample below). Is there other way to accomplish this ? Withou reflecting user-ID and password ?


Sample FTP JCL.
Code:

----------------------------------------------------------------
//FTP EXEC PGM=FTP,PARM='xxxxxxxxxxxxxx' 
//SYSPRINT DD SYSOUT=*                   
//INPUT    DD *                           
user                                     
password                                 
binary                                   
PUT 'TXT1' 'TXT2'                         
Quit                                     
----------------------------------------------------------------


Thanks,
-Bee_bop
Back to top
View user's profile Send private message
kolusu
Site Admin
Site Admin


Joined: 26 Nov 2002
Posts: 12378
Topics: 75
Location: San Jose

PostPosted: Fri Sep 21, 2007 7:46 am    Post subject: Reply with quote

Bee_bop,

Dynamically supply the username and password to FTP sysin cards

IE,

Code:

//INPUT    DD DSN=80 BYTE DYNAMIC FILE WITH USERNAME & PWD,
//            DISP=(OLD,DELETE,KEEP)
//         DD *     
binary                                   
PUT 'TXT1' 'TXT2'                         
Quit           
/*


The sysout will only show the userid but the password is not shown

Kolusu
_________________
Kolusu
www.linkedin.com/in/kolusu
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 -> Job Control Language(JCL) 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