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
how do you create a dataset in a jcl with the same file organisation as that of another existing dataset?
In job processing, what happens in conversion stage?
what are the various stages of job processing?
Which dd parameters are required?
What is the use of disp parameter?
a set statement is used to define commonly used symbolic across job steps or procedures. It initializes the previous values in the symbolic names. It has to be defined before the first use of the symbolic names in the jcl. State whether true or false?
What is condition checking in jcl? Is this possible?
Explain how can an in-stream dataset be terminated?
When The Define Jcl Is Not Available, How Can You Get Information About A Vsam File's Organisation ?
define cond parameter in jcl?
Explain how can return codes be tested before execution of a job step?
I have a job called careerride and some steps in it as step1,step2. But I want to execute step2 before step1 ? How do I do that?
Is it possible to code instream data in a PROC?
what is DSN parameter and DISP parameter is used for?
What is the purpose of the dd keylen parameter?