•
•
•
•
What is DaniWeb IT Discussion Community?
You're currently browsing the Computer Science and Software Design section within the Software Development category of DaniWeb, a massive community of 397,772 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 2,541 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our Computer Science and Software Design advertiser:
Views: 2153 | Replies: 0
![]() |
•
•
Join Date: Jun 2005
Posts: 1
Reputation:
Rep Power: 0
Solved Threads: 0
Hi,
I am a new member. I am having problem with a SAS code i have encountered and cant understand what is wrong with it. The problem is that it is populating the date wrongly. Below is the SAS code i have included in my JCL.
//SASTEP02 EXEC SAS
//INPUT1 DD DSN=TRIMCARP.OUTPUT(+1),DISP=SHR
//OUTPUT1 DD DSN=foreign.file.TXXXX,DISP=(MOD,CATLG),
// SPACE=(TRK,(150,50),RLSE),UNIT=DISK,LRECL=80,
// BLKSIZE=0,RECFM=FB
//SYSOUT DD SYSOUT=*
//SYSIN DD *
DATA EXTRACT;
INFILE INPUT1 LENGTH=LEN MISSOVER;
INPUT @4 VOLS $6.
@13 JDAT $8.
@27 HH $2.
@29 MM $2.
@34 ACCT$8.;
PDAT = COMPRESS(JDAT,'/');
SELDAT = DATEJUL(PDAT);
SS = '00';
IF SELDAT = TODAY()-1 THEN OUTPUT;
ELSE DELETE;
KEEP VOLS JDAT PDAT SELDAT HH MM SS ACCT;
PROC PRINT;
DATA EXTRACT;
SET EXTRACT;
CDATE = TODAY();
LECCODES = 'XXXXXXX';
CTIME = TIME();
IF VOLS GT '5F2999' THEN TAPE = 'RFN';
ELSE TAPE = 'CFN';
FILE OUTPUT1 NOTITLES;
PUT @1 VOLS @7 LECCODES @14 TAPE @19 HH @21 MM @23 SS
@25 CDATE YYMMDD6. @32 ACCT;
/*
Why is it populating a wrong date?????? This problem also occurs randomly. The rest of the days it populates the date perfecly.
Do hope someone can help out
I am a new member. I am having problem with a SAS code i have encountered and cant understand what is wrong with it. The problem is that it is populating the date wrongly. Below is the SAS code i have included in my JCL.
//SASTEP02 EXEC SAS
//INPUT1 DD DSN=TRIMCARP.OUTPUT(+1),DISP=SHR
//OUTPUT1 DD DSN=foreign.file.TXXXX,DISP=(MOD,CATLG),
// SPACE=(TRK,(150,50),RLSE),UNIT=DISK,LRECL=80,
// BLKSIZE=0,RECFM=FB
//SYSOUT DD SYSOUT=*
//SYSIN DD *
DATA EXTRACT;
INFILE INPUT1 LENGTH=LEN MISSOVER;
INPUT @4 VOLS $6.
@13 JDAT $8.
@27 HH $2.
@29 MM $2.
@34 ACCT$8.;
PDAT = COMPRESS(JDAT,'/');
SELDAT = DATEJUL(PDAT);
SS = '00';
IF SELDAT = TODAY()-1 THEN OUTPUT;
ELSE DELETE;
KEEP VOLS JDAT PDAT SELDAT HH MM SS ACCT;
PROC PRINT;
DATA EXTRACT;
SET EXTRACT;
CDATE = TODAY();
LECCODES = 'XXXXXXX';
CTIME = TIME();
IF VOLS GT '5F2999' THEN TAPE = 'RFN';
ELSE TAPE = 'CFN';
FILE OUTPUT1 NOTITLES;
PUT @1 VOLS @7 LECCODES @14 TAPE @19 HH @21 MM @23 SS
@25 CDATE YYMMDD6. @32 ACCT;
/*
Why is it populating a wrong date?????? This problem also occurs randomly. The rest of the days it populates the date perfecly.
Do hope someone can help out
![]() |
•
•
•
•
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
•
•
•
•
•
•
•
•
DaniWeb Computer Science and Software Design Marketplace
•
•
•
•
activation blog blogging bt business business software code computer dell design development devices dreamweaver erp systems experiment html india internet it japan key linux media microsoft mmorpg networking news office open operating product programming project management python rss science security serial software software selection source super system technology evaluation tutorials vista web windows xp
- Problem in Running SAS Learning Edition (Computer Science and Software Design)
- SAS/Oracle Date Problem (Computer Science and Software Design)
- Hi all Pls Ans these SAS Q's (Community Introductions)
- SAS Code Help (Computer Science and Software Design)
- SAS Newbie (Computer Science and Software Design)
- SAS help: comparing individual observations (Computer Science and Software Design)
- Some Basic Code Hopefully (Help Needed) (HTML and CSS)
Other Threads in the Computer Science and Software Design Forum
- Previous Thread: Microsoft Access date validation
- Next Thread: How to Use Design Patterns


Linear Mode