BookmarkSubscribeRSS Feed
🔒 This topic is solved and locked. Need further help from the community? Please sign in and ask a new question.
Mike018
Fluorite | Level 6

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

1 ACCEPTED SOLUTION

Accepted Solutions
Doc_Duke
Rhodochrosite | Level 12

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

2 REPLIES 2
Doc_Duke
Rhodochrosite | Level 12

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

Mike018
Fluorite | Level 6

Thanks a lot!

hackathon24-white-horiz.png

The 2025 SAS Hackathon has begun!

It's finally time to hack! Remember to visit the SAS Hacker's Hub regularly for news and updates.

Latest Updates

How to Concatenate Values

Learn how use the CAT functions in SAS to join values from multiple variables into a single value.

Find more tutorials on the SAS Users YouTube channel.

SAS Training: Just a Click Away

 Ready to level-up your skills? Choose your own adventure.

Browse our catalog!

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