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 |
Min no of member?s (PDS) in one directory block?
diff bw SB37,SD37,SE37 ?( bcz these 3 belongs Space related abends only)
what does mvs stand for?
how can the same proc be re-used and called by many jobs?
What is timing concept in mainframe?
A PROC has five steps. Step 3 has a condition code. How can you override/nullify this condition code?
I have four steps in jcl they are STEP1,STEP2,STEP3 and STEP4. Can it possible to run the reverse order like step4 first then step3,step2,step1?
if the submitter of a job wants to inform another user about the job completion, how can it be done?
Suppose I have seven jobs to do, but I want to hold one than how can I do this?
what is static and dynamic call with examples?
How to submit multiple jobs. These jobs are members in PDS. The second job should run if the first job runs successfully and so on.
What is the difference between BLKSIZE and LRECL?