I am getting the file from Unix to Mainframes for every 15
minutes. The mainframe job get abended with bad records
coming from unix. I recovered that by deleting the bad data.
I need permenant solution how to fix the issue? The record
is getting characters in in first 9 positions which it
should not.
Please provide me the solution how to skip the records if
it finds the charcters in the first 9 positions.
K
Answers were Sorted based on User's Feedback
Answer / krish
Its having bad data in first 9 positions..
use sort omit condition to reject those records
OMIT COND = (STRATPOS,LENGTH,TYPE,REL OPERT,VALUE)
Is This Answer Correct ? | 4 Yes | 0 No |
Answer / amy
TRY OUT SORT UTILITY---
//STEP1 EXEC PGM=SORT
//SORTIN DD DSN=INPUT.FROM.UNIX
//SORTOUT DD DSN=OUTPUT.AT.MAINFRM.
//SORTWRK DD ------
//SYSIN DD *
SORT FIELDS=COPY
INREC FIELDS=(1:10,71)
/*
//* ASSUMING LRECL=80.OTHERWISE CHANGE 71 TO (LRECL-9)
Is This Answer Correct ? | 0 Yes | 2 No |
Answer / aiswarya
Sort the file Using syncsort and skip the first 9
characeters using SKIPREC
//SYSIN DD *
SORT FILEDS=COPY
SKIPREC=N
Is This Answer Correct ? | 0 Yes | 4 No |
what is the function of spool command?
Max. No of DD statements in a job ?
While using SORT FILES =NONE,XSUM I am getting error "ICE172A E XSUM IS NOT SUPPORTED - USE ICETOOL SELECT IF APPROPRIATE"..I want to write duplicate records a a serparte file..how i can do tht?
why should SYSIN DD * statement should not be included inside a PROCedure snippet??? please answer this.. i need to know.
i have a string of 80 chars i want to replace 4th char with "a"?
is there any way to execute more than one proc in the same exec statement at the same time..?
Why do you want to specify the REGION parameter in a JCL step?
What is the difference between BLKSIZE and LRECL?
1) max no of steps with jcl job can execute 2) how many extentions r possible in sequencial files with job 3) what is set parameter will do 4)how to get syntax errors without sub 5) what is differ between error and abend 6) hw mvs knows who submitted the job and whoom it has to forward 7) what are the positinal parameters of data descripter
When you specify multiple datasets in a JOBLIB or STEPLIB, what factor determines the order?
What is the meaning of the following declaration : DCB=BLKSIZE=, What is the difference between above declaration & not specifying DCB at all for a output file?
Which dd parameters are required?