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 |
FOR a GDG, the book by 'SABA ZAMEER' says 'We can NOT ALTER the LIMIT parameter after it is defined'. (p-211). But many persons have written that it can be changed, which one is true ?
How do you submit a JCL under CICS environment ?
wht happens if cond=true ? pls give me with an example ?
What is JOBLIB ?
How to remove the spaces at end of each record in the output file Via COBOL program? note: The file has a VB length ----TRY
which statement is used to end the in-stream procedure in a jcl?
Explain how can the submitting users racf authority be overridden in a job stream?
In sms datasets, what is the function of the dd avgrec keyword?
a job have 5 steps and it will executes a proc which have 5steps in it. now i have to execute step3 only when step2 of proc executes successfully
Can a PROC CALL another PROC ? (in both Instream and Cataloged cases) ?
what is the job entry system used in your project?
what is use of dsn parameter in dd statement?