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 

CR/LF option in the advance settings, while transferring a f

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


Joined: 18 Feb 2004
Posts: 138
Topics: 14

PostPosted: Thu Feb 24, 2005 10:20 am    Post subject: CR/LF option in the advance settings, while transferring a f Reply with quote

Hi Forum,

In the ISPF option 6, I am trying to transfer a file from mainframe to my PC. The file has ASCII & Binary data.

If I go into SETUP on the transfer panel, there is an option available CR/LF Processing. I can select one of these 2:
1) ASCII file CR/LF
2) Binary file CR/LF

Can someone please help me with the meaning of these options.
_________________
Regards,
Programmer
Back to top
View user's profile Send private message
programmer1
Beginner


Joined: 18 Feb 2004
Posts: 138
Topics: 14

PostPosted: Thu Feb 24, 2005 10:22 am    Post subject: Reply with quote

Sorry, I can even select both of these options or none of these options. The default selects ASCII file CR/LF.
_________________
Regards,
Programmer
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: Thu Feb 24, 2005 10:32 am    Post subject: Reply with quote

programmer1,

CRLF stands for Carriage Return and Line Feed. CRLF (x'0D0A') is added at the end of each record. EOF (x'1A') is added at the end of the file. If APPEND is specified, EOF is removed from the end of an existing file and is added at the end of an appended file.

Check this link for a detailed explanation of MVS/TSO options.

http://www-306.ibm.com/software/webservers/hostondemand/library/infocentergafinal/hod/en/help/mvstso.html

Hope this helps...

Cheers

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


Joined: 18 Feb 2004
Posts: 138
Topics: 14

PostPosted: Thu Feb 24, 2005 10:44 am    Post subject: Reply with quote

Thanks Kolusu,

I will be using the Binary transfer method. From the linked document, I understand that for Binary option, selecting CR/LF processing will Remove the CRLF (X'0D0A') from the end of each record. (Or is it the other way round ?)

How does it impact the file ? My file is further used as a input to a machine, which I assume would require exact data.

I basically want my file to go untouched (without any explicit changes). Which option shall I specify Rolling Eyes
_________________
Regards,
Programmer
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: Thu Feb 24, 2005 10:54 am    Post subject: Reply with quote

Programmer1,

It depends on whether you are sending(From PC to TSO host) or Receiving( From TSO to PC)

If you are transferring the data from the PC to TSO in binary mode , you don't need the CRLF, So they are removed

Hope this helps...

Cheers

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


Joined: 18 Feb 2004
Posts: 138
Topics: 14

PostPosted: Thu Feb 24, 2005 11:04 am    Post subject: Reply with quote

Thanks Kolusu,

Because I am sending this data to a third party, I got confused in the terms "sending and receiving". Smile

Thanks for your time
_________________
Regards,
Programmer
Back to top
View user's profile Send private message
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