DATA Step, Macro, Functions and more

End-of-Line character using "termstr" equivalent on Mainframe ...????

Reply
Regular Contributor
Posts: 161

End-of-Line character using "termstr" equivalent on Mainframe ...????

Hello - 

 

I came across this article that shows that "termstr" option can be used for delimited files from Unix to Windows, vice-versa... 

 

I am just curious, is there an equivalent of this option in the mainframe environment ?   Is it possible to define the EOL character in an INFILE statement on the mainframe ?

 

Thanks in advance...

Kannan Deivasigamani
Respected Advisor
Posts: 4,173

Re: End-of-Line character using "termstr" equivalent on Mainframe ...????

Trusted Advisor
Posts: 3,211

Re: End-of-Line character using "termstr" equivalent on Mainframe ...????

Kannand only when you are running a mainfrem in Unix mode the Unix rules apply. In the OLD MVS z/OS world it is completely different and nothing like Windos Unix exist. FB VB VSAM have well defined records and do not use a character indicator (termstr) for that. Ebcdic/Ascii code pages adding more comlexity to translations as some might think.

---->-- ja karman --<-----
Regular Contributor
Posts: 161

Re: End-of-Line character using "termstr" equivalent on Mainframe ...????

[ Edited ]

I failed to provide the link to the article I referred in my post earlier. ..here you go. ..

 

http://support.sas.com/kb/14/178.html

Kannan Deivasigamani
Trusted Advisor
Posts: 3,211

Re: End-of-Line character using "termstr" equivalent on Mainframe ...????

If you co not believe me ... this manual should be in your head.   The USS (HFS type is a UNIX way) and the normal classic datasets. FILENAME Statement: z/OS ,  SAS(R) 9.4 Companion for z/OS, Fifth Edition

https://support.sas.com/documentation/cdl/en/hosto390/68955/HTML/default/viewer.htm#n06xm17q99z0x6n1...

  

---->-- ja karman --<-----
Regular Contributor
Posts: 161

Re: End-of-Line character using "termstr" equivalent on Mainframe ...????

Thanks for the url. I'll read thru. 

 

I appreciate you looking into this.

Kannan Deivasigamani
Ask a Question
Discussion stats
  • 5 replies
  • 360 views
  • 2 likes
  • 3 in conversation