12-24-2015
Siddhartha
Calcite | Level 5
Member since
06-23-2011
- 69 Posts
- 0 Likes Given
- 0 Solutions
- 0 Likes Received
-
Latest posts by Siddhartha
Subject Views Posted 1333 12-23-2015 07:15 AM 3483 12-22-2015 10:02 AM 2508 10-27-2015 05:38 AM 1840 09-21-2015 12:55 PM 1844 09-21-2015 12:16 PM 4952 09-16-2015 07:24 AM 4971 09-15-2015 02:38 PM 1512 09-15-2015 01:39 PM 1652 08-25-2015 10:43 AM 1694 08-25-2015 10:17 AM -
Activity Feed for Siddhartha
- Posted Running sas program in Unix environment giving exit code as non zero on SAS Programming. 12-23-2015 07:15 AM
- Posted Need to get the return code(rc=0) on SAS Programming. 12-22-2015 10:02 AM
- Posted Passing Filename as parameters to SAS program on SAS Programming. 10-27-2015 05:38 AM
- Posted Re: Data doen't exist on SAS Programming. 09-21-2015 12:55 PM
- Posted Data doen't exist on SAS Programming. 09-21-2015 12:16 PM
- Posted Re: Reading packed decimal field from Mainframes flat file in to Unix on SAS Programming. 09-16-2015 07:24 AM
- Posted Reading packed decimal field from Mainframes flat file in to Unix on SAS Programming. 09-15-2015 02:38 PM
- Posted Reading PD format data in the input satment on SAS Programming. 09-15-2015 01:39 PM
- Posted Re: Comp-3 fields - getting control characters in the output on SAS Programming. 08-25-2015 10:43 AM
- Posted Comp-3 fields - getting control characters in the output on SAS Programming. 08-25-2015 10:17 AM
- Posted Re: Max date value on SAS Programming. 10-15-2014 12:38 PM
- Posted Max date value on SAS Programming. 10-15-2014 11:29 AM
- Posted Re: column to row transpose on SAS Programming. 09-30-2014 03:28 PM
- Posted Re: column to row transpose on SAS Programming. 09-30-2014 03:19 PM
- Posted Re: column to row transpose on SAS Programming. 09-30-2014 03:01 PM
- Posted column to row transpose on SAS Programming. 09-30-2014 02:29 PM
- Posted SAS EG 5.1 - System.Runtime.InteropServices.COMException error on SAS Enterprise Guide. 09-13-2013 11:48 AM
- Posted Creating specific output using two datasets in sas on SAS Programming. 01-04-2012 02:10 AM
- Posted Calculation of Combination of Variable values into counts on SAS Programming. 12-22-2011 08:15 AM
- Posted Facing issues while importing data from TSV file on SAS Procedures. 12-12-2011 07:05 AM
12-23-2015
07:15 AM
Hi,
When we are running a program from SAS studio, the program is running succussfully with error free (rc=0), but when the same program is running in the unix environment it doesnt return the exit code as zero. Can anyone help on this.
Regards,
Siddhartha
... View more
12-22-2015
10:02 AM
Hi,
I need to execute the programs successfully and need to get the return code(rc=0) after the program completes successfully.
Can anyone help me, how to get the return code in the Log , whether the program is executed successfully with (retruncode)rc=0 and fails if rc >0.
Thanks & Regards, Siddhartha
... View more
10-27-2015
05:38 AM
We need to call the sas program from unix shell with the filenames to be passed as parameters. Please help us how can we pass a parameter to sas program from command line as argument and how it has to be handleled inside the SAS program.
The scenario is to call a same sas program in the weekly and monthly job with the different set of files.
... View more
09-21-2015
12:55 PM
Dataset has moved correctly from mainframes to Solaris server and I am able to see the dataset in the list as well. But when I am using in the program , I am getting the error: ERROR: File SID.MR0305A.DATA does not exist.
... View more
09-21-2015
12:16 PM
Hi, I have FTP ed a dataset named MR0305 from mainframes to Solaris Server and using in the SAS program. The dataset has been in the Solaris server after FTP has been done. But I was getting the error as:
253 ) 254 ; ERROR: File SID.MR0305A.DATA does not exist. 255 256 *-- NO BLANK TERR06 / TERR07 RECORDS -------------------------------*;
I have tried so many but again the same error has been repeatedly coming:
ERROR: File SID.MR0305A.DATA does not exist.
Any suggestions will help a lot.
Thanks & Regards, Sid
... View more
09-16-2015
07:24 AM
Conversion of the files has been made and through FTP we are taking the files in the unix server.
We are using Zw.d in place of PD formats, but getting the error as:
HEADER=1078490372G0311411150828XPN399921 150831GDOG 00010000000000000000018481334150831+0000000.00+0000531.70M
S9276371D3BCM07SAIASGF00054607528 260550300 000000 402964549700000 00009 BXXA94541
3SILVERSTONE GROUP JOAN EMOND 11516 MIRACLE HILLS DRIVE OMAHA NE681544473 SILVERSTONE
GROUP N/A (402) 964-5497 11516 MIRACLE HILLS OMAHA NE 68154-80066815468154000601
44738006X NNN XB LINECNT=80 I=15 ZZ=2398 TRAILA= RNUM= SHPQTY=. ORDQTY=. TRAILB= U_PRC=. NETAMT=. TRAILC= TEST= ID=
U_PRC2=. SEQ_NUM=1 _ERROR_=1 _N_=1
NOTE: Invalid data for SHPQTY in line 2 596-601.
NOTE: Invalid data for U_PRC in line 2 648-657.
NOTE: Invalid data for NETAMT in line 2 659-668.
Please suggest.
Thanks & Regards,
Siddhartha
... View more
09-15-2015
02:38 PM
We are migrating SAS programs from Mainframe to Unix. In the mainframe, sas programs we have COMP-3 fields using PD formats. When I was trying to convert the PD formats to Zw.d formats in the unix server, I was getting the error as:
I get the Note in my log: NOTE: Invalid data for U_PRC in line 291 648-659. NOTE: Invalid data for NETAMT in line 291 660-671.
ERROR: Limit set by ERRORS= option reached. Further errors of this type will not be
Mainframe SAS Program:
FILENAME MR015B '/u175/MR012/D0902.txt'; DATA TEMP_C UPDATE_C; INFILE MR015B ; INPUT @1 HEADER $CHAR551. @495 LINECNT 2. @ ; DO I=1 TO 14 BY 1 UNTIL (I = LINECNT); ZZ = 552 + (142 * (I-1)); INPUT @ZZ TRAIL $CHAR35. @ZZ + 35 RNUM $CHAR9. @ZZ + 44 SHPQTY 6. @ZZ + 50 ORDQTY 6. @ZZ + 56 TRAILB $CHAR40. @ZZ + 96 U_PRC PD5.2 @ZZ + 107 NETAMT PD5.2 @ZZ + 118 TRAILC $CHAR24. @ ; *--- UPDATE ORDER QUANTITY -------------------------------------------*; ORDQTY = ROUND((ORDQTY / 50), 1.0); *--- UPDATE UNIT PRICE -----------------------------------------------*; U_PRC = U_PRC * 50; *--- UPDATE SHIP QUANTITY --------------------------------------------*; SHPQTY = ROUND((SHPQTY / 50), 1.0); OUTPUT TEMP_C; END; run;
I had just changed the PD5.2 to z11.2 for U_PRC & NETAMT column as follows in the above program:
DO I=1 TO 14 BY 1 UNTIL (I = LINECNT); ZZ = 552 + (142 * (I-1)); INPUT @ZZ TRAIL $CHAR35. @ZZ + 35 RNUM $CHAR9. @ZZ + 44 SHPQTY 6. @ZZ + 50 ORDQTY 6. @ZZ + 56 TRAILB $CHAR40. @ZZ + 96 U_PRC 11.2 @ZZ + 107 NETAMT 11.2 @ZZ + 118 TRAILC $CHAR24. @ ;
I was getting the error as: Invalid values for U_PRC & NETAMT. NOTE: Invalid data for U_PRC in line 291 648-659. NOTE: Invalid data for NETAMT in line 291 660-671.
Please suggest how to make changes for the respective PD format fields.
Thanks & Regards, SId
... View more
09-15-2015
01:39 PM
Hi,
I am having the below program where COMP-3 fields are using PD formats. I was trying to read the file having PD formats, using z8. for PD4. and z13.2 for PD6.2. But getting invalid values when I use Zw.d formats for the PD's.
Could anyone suggest which format I need to use.
DATA TEMP_01 ; INFILE MRCUST ; INPUT @1 CUSTNUM $CHAR9. @10 RNUM $CHAR9. @19 RNUMCI $CHAR1. @20 RCC $CHAR14. @22 RCCSC $CHAR2. @22 RCCPT $CHAR5. @34 U_CR PD4. @38 U_MTD PD4. @42 U_QTD PD4. @46 U_YTD PD4. @50 U_L12 PD4. @54 U_LY PD4. @58 R_CR PD6.2 @64 R_MTD PD6.2 @70 R_QTD PD6.2 @76 R_YTD PD6.2 @82 R_L12 PD6.2 @88 R_LY PD6.2 ;
Thanks & Regards, Sid
... View more
08-25-2015
10:43 AM
There are almost around 20 fields with the PDw.d format defined in the program. Below is the format we are using in the PUT statement: @127 SUB_TOTAL_AMT PD5.2 @132 TAX_AMT PD5.2 @137 TOT_INVOICE_AMT PD5.2 @244 CASH_SALE_AMT_P PD4.2 @293 STBASE PD5.2 @298 STTAX PD5.2 Thanks & Regards, Siddhartha
... View more
08-25-2015
10:17 AM
Hi, I was using a text file from mainframe in one of the program, there are some comp-3 fields. While using this fields with the format starting with PDw.d formats. I am getting the control characters in the output. I am not able to read the format with these characters. Can any one suggest how to read control character in the output. Below is the screnshot. Thanks & Regards, Sid
... View more
10-15-2014
12:38 PM
I was unable to get the values in correct format i.e., DW_Load_time should come as datetime format. Regards, Sid
... View more
10-15-2014
11:29 AM
Hi, I am having the columns as AS_OF_DT and dw_Load_time as date columns and the format is numeric. I need to take the latest of these date values. AS_OF_DT DW_LOad_time 19601 19614.462789 19589 19614.462789 19235 19603.345679 19590 19405.213453 19560 19349.298756 19340 18777.132456 19430 18796.654378 I need to refer these in the codes as macro variables. Could any one help me on how to go on this. Regards, Sid
... View more
09-30-2014
03:01 PM
Thanks Ballardw. But I am getting the error as follows: NOTE: Character values have been converted to numeric values at the places given by: (Line):(Column). 26:16 NOTE: Invalid numeric data, '1G' , at line 26 column 16. cust_id=. cust_tin=11 cust_tin_suf=11111 guar_tin=22 guar_tin_suf=22222 tin=22-22222 _ERROR_=1 _N_=1 NOTE: Invalid numeric data, '2G' , at line 26 column 16. cust_id=. cust_tin=11 cust_tin_suf=11111 guar_tin=22 guar_tin_suf=22222 tin=22-22222 _ERROR_=1 _N_=2 NOTE: Invalid numeric data, '3G' , at line 26 column 16. cust_id=. cust_tin=11 cust_tin_suf=11111 guar_tin=22 guar_tin_suf=22222 tin=22-22222 _ERROR_=1 _N_=3 Thanks & Regards, Sid
... View more