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
Answer Posted / 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 |
Post New Answer View All Answers
What are steplib and joblib?
What are the parameter we cannot use in procedure? How many instream we can write in single jcl?
Explain the job statement in jcl?
What statement marks the beginning of an in-stream or cataloged procedure in jcl and assigns default values to parameters defined in the procedure?
what is use of disp parameter in dd statement?
How can values be passed from the job stream to an executable program?
How can return codes be tested before execution of a job step?
What dd statement is used to supply the name of a dataset?
How do you create a temporary dataset?
what is “Cond= even” and “Cond=only”?
how JCL works?
What do you understand by the term “keyword” with respect to jcl and what is the opposite of the term?
what is use of dsn parameter in dd statement?
What are the parameters that are used in creating a gdg?
define cond parameter in jcl?