DATA Step, Macro, Functions and more

Output in log instead of output file

Accepted Solution Solved
Reply
Occasional Contributor
Posts: 15
Accepted Solution

Output in log instead of output file

Hello,

     did you know why the output data is written in the SAS log instead of the specified output file (TIC5109F). Here's my code.

// In my program

DATA BB                                                              

  FILE TIC5109F;                                                     

  FORMAT NBR_RECORDS_ECRITS   12.                                    

                   NBR_RECORDS_DETRUITS 12.;                                   

  SET LISTE_MESSAGES END=EOF;                                        

  RETAIN NBR_RECORDS_ECRITS 0 NBR_RECORDS_DETRUITS 0;                

  PUT @001 RECORD;                                                   

  NBR_RECORDS_ECRITS = NBR_RECORDS_ECRITS + 1;                       

  IF EOF THEN                                                        

    DO;                                                              

      CALL SYMPUT("NBR_RECORDS_ECRITS",PUT(NBR_RECORDS_ECRITS,12.)); 

    END;                                                             

RUN;                                                                

//The portion of the JCL code related

//TIC5109F  DD   DSN=BTS.MINIV42.TIC5109F.SELECT,DISP=(,CATLG), 

//           UNIT=DISK,SPACE=(TRK,(90,30),RLSE),                

//           DCB=(RECFM=FB,LRECL=180,BLKSIZE=27000)        

Is it because my JCL parameters are not good?

Thanks


Accepted Solutions
Solution
‎09-14-2011 12:29 PM
Trusted Advisor
Posts: 2,116

Output in log instead of output file

You are missing a semicolon in the DATA BB statement, so FILE and TIC5109F are taken as SAS datasets.  That should show in the log.

Doc Muhlbaier

Duke

View solution in original post


All Replies
Solution
‎09-14-2011 12:29 PM
Trusted Advisor
Posts: 2,116

Output in log instead of output file

You are missing a semicolon in the DATA BB statement, so FILE and TIC5109F are taken as SAS datasets.  That should show in the log.

Doc Muhlbaier

Duke

Occasional Contributor
Posts: 15

Output in log instead of output file

Thanks a lot!

🔒 This topic is solved and locked.

Need further help from the community? Please ask a new question.

Discussion stats
  • 2 replies
  • 136 views
  • 0 likes
  • 2 in conversation