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!

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!

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.

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
  • 716 views
  • 0 likes
  • 2 in conversation