Search Results

Search: Posts Made By: srivalli
1,541
Posted By srivalli
I am getting error for all columns,in first...
I am getting error for all columns,in first column I have value 1 but still I am getting error..not sure what the problem is..
1,541
Posted By srivalli
when i run below code in linux i am getting error...
when i run below code in linux i am getting error for all columns.not sure why getting error in linux.please help me.

awk -F, '
NR==1{next}
{f=""}
$1!~/^[0-9]{0,12}$/{f=f?f"...
4,154
Posted By srivalli
Handle null values-awk
I am using below code to validate the source file,code working fine but if any column contains null value then below code throwing error actually it should not.how to customize the below code to...
1,210
Posted By srivalli
sed command error
When i pass parameter to sed command its throwing error as “SED cannot be parsed”.sed command is working if I pass directly.please tell me how to handle sed command with parameter.Please check below....
1,166
Posted By srivalli
File conversion problem
To convert file epcdic to ascill format,i am using below code.Getting some junk characters in output file.not sure what the issue is.Please correct if below command is wrong.

DD conv=ascii...
2,432
Posted By srivalli
Sorry,i didnt mean it.
Sorry,i didnt mean it.
2,432
Posted By srivalli
Below code is not working. awk ...
Below code is not working.


awk '/OCCURS .+ TIMES/ {n = $4; NF-=3; L=1}
/10 + FILLER/ {for (i=1;i<n;i++) for (j=1;j<=c;j++) print B[j]; L=c=0}
L ...
2,432
Posted By srivalli
occurance will change from copy book to copybook...
occurance will change from copy book to copybook but that will not be issue,help me to get 14 occurs itslef and always it will be 10 filler line only.
2,432
Posted By srivalli
Copy n paste n times
I have one mainframe copy book where I want to copy n times depend on occurs which mention below.
Example:
Below highlighted row mention “occurs 2 times” so I need to copy 2 times till next label...
2,591
Posted By srivalli
Wheni run above command,i am getting result as...
Wheni run above command,i am getting result as below.i am not getting row.

Row:$0
Service ID have lesser precision
Row:$0
Service ID have lesser precision
Row:$0
Service ID have lesser...
2,591
Posted By srivalli
i think above code will just print higher...
i think above code will just print higher precision or lesser precision,i need a complete row which has higher precision.
2,591
Posted By srivalli
Length validation
I am using below code to find the length of first column additionally I want the complete row which length is greater than 12.at the end I want the rows where first column data length is greater...
1,875
Posted By srivalli
In below third column it should accept any...
In below third column it should accept any special characters,numbers,alphabets etc.it should check only length of the column, data can be anything.

$3!~/^[a-zA-Z0-9.%&@: -]{0,10}$/{f=f?f"...
1,875
Posted By srivalli
Its working thanks for your help.
Its working thanks for your help.
1,875
Posted By srivalli
getting syntax error
Geting syntax errror if i replace f with f=f?f" Error Code":"Error Code",can you please change in below code where i should replace f with f=f?f" Error Code":"Error Code".

awk -FÇ '...
1,875
Posted By srivalli
Sorry i didnt get u,do i need to replace f as...
Sorry i didnt get u,do i need to replace f as {f=" "} thats it?
awk -FÇ '
NR==1{next}
{f=" "}
$1!~/^[a-zA-Z0-9.%&@: -]{0,12}$/{f="ServicerID-error"} ...
1,875
Posted By srivalli
Finding only one error in a row
I am using below code to validate whether datatype,length and date format is correct as defined in file_layout.
Below code is able to find only one error in a row,if there is more than one error in...
Showing results 1 to 17 of 17

 
All times are GMT -4. The time now is 05:04 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy