BookmarkSubscribeRSS Feed
mmehr3
Calcite | Level 5

Hi All,

I am trying to read a mianframes file through SAS but somehow the code is only reading the alternate lines of input data, Is there something I am missing out on.

Here's the SAS Code I have been trying :

FILENAME  FIXIT FTP "&FIXEDFILE"  host="dipe.ipc.us.xxxx.com"

          user="&mfuser." pass="&mfpass." cd='..' RECFM=F LRECL=200;

 

DATA FIXED;                         

   INFILE FIXIT ;           

   INPUT        

   @04  R_TRANCD $EBCDIC2.   

    @07  USERCD   $EBCDIC2.

   @20  TRANSAMT $EBCDIC14.

RUN;   

Could you please suggest.                              


2 REPLIES 2
MichaelLarsen
SAS Employee

Do you get any warnings in the log?

Are you certain that RECFM=F and LRECL=200 are correct?

Regards,

Michael

Kurt_Bremser
Super User

What is the organisation of the file on the mainframe (FB, VB, ...) and the record size?

The log from the data step would be helpful.

Small hint:

filename fixit ftp "'&fixedfile'" .....;

lets you omit the cd='..' option. Note the single quotes inside the double quotes.

sas-innovate-2024.png

Don't miss out on SAS Innovate - Register now for the FREE Livestream!

Can't make it to Vegas? No problem! Watch our general sessions LIVE or on-demand starting April 17th. Hear from SAS execs, best-selling author Adam Grant, Hot Ones host Sean Evans, top tech journalist Kara Swisher, AI expert Cassie Kozyrkov, and the mind-blowing dance crew iLuminate! Plus, get access to over 20 breakout sessions.

 

Register now!

What is Bayesian Analysis?

Learn the difference between classical and Bayesian statistical approaches and see a few PROC examples to perform Bayesian analysis in this video.

Find more tutorials on the SAS Users YouTube channel.

Click image to register for webinarClick image to register for webinar

Classroom Training Available!

Select SAS Training centers are offering in-person courses. View upcoming courses for:

View all other training opportunities.

Discussion stats
  • 2 replies
  • 1258 views
  • 0 likes
  • 3 in conversation