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 |
How to find out the number of records in a file using JCL
what happens if job falls in loop ? how to resolve it ?
how can u understand ps and pds from their names ?
i have a base gdg consisting of 12 versions like jan to dec. i need to concatante this gdg to another gdg which have version 1 or to the base gdg itself can anyone give me the code pls ?
How to execute step2,step1, step3 if step1,2,3 are in order
I have 5 generations in my GDG. How do I code in the JCL to consider all the 5 versions of the GDG ?
Suppose I have a program in cobol name ”careerride” and want to execute the program by jcl. Specify the process?
how can u identify the db2 from jcl ?
what is the compile process of cobol program expalin with code
What is the use of IEBGENER ?
How do you pass parameters to the program as the job is being executed ?
what is the Difference between SYSIN and PARM ?