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



I am getting the file from Unix to Mainframes for every 15 minutes. The mainframe job get abended ..

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

I am getting the file from Unix to Mainframes for every 15 minutes. The mainframe job get abended ..

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

I am getting the file from Unix to Mainframes for every 15 minutes. The mainframe job get abended ..

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

Post New Answer

More JCL Interview Questions

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 ?

4 Answers   IBM,


How do you submit a JCL under CICS environment ?

5 Answers   Wipro,


wht happens if cond=true ? pls give me with an example ?

2 Answers   Syntel,


What is JOBLIB ?

5 Answers   Xansa,


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

0 Answers  


which statement is used to end the in-stream procedure in a jcl?

1 Answers   IBM,


Explain how can the submitting users racf authority be overridden in a job stream?

0 Answers  


In sms datasets, what is the function of the dd avgrec keyword?

0 Answers  


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

3 Answers  


Can a PROC CALL another PROC ? (in both Instream and Cataloged cases) ?

3 Answers   IBM,


what is the job entry system used in your project?

3 Answers  


what is use of dsn parameter in dd statement?

0 Answers   IBM,


Categories