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

what is the function of spool command?

4 Answers  


Max. No of DD statements in a job ?

4 Answers   CSI,


While using SORT FILES =NONE,XSUM I am getting error "ICE172A E XSUM IS NOT SUPPORTED - USE ICETOOL SELECT IF APPROPRIATE"..I want to write duplicate records a a serparte file..how i can do tht?

3 Answers   Steria,


why should SYSIN DD * statement should not be included inside a PROCedure snippet??? please answer this.. i need to know.

0 Answers  


i have a string of 80 chars i want to replace 4th char with "a"?

3 Answers   CSC,


is there any way to execute more than one proc in the same exec statement at the same time..?

0 Answers  


Why do you want to specify the REGION parameter in a JCL step?

4 Answers   Kekran Mekran, TCS,


What is the difference between BLKSIZE and LRECL?

3 Answers  


1) max no of steps with jcl job can execute 2) how many extentions r possible in sequencial files with job 3) what is set parameter will do 4)how to get syntax errors without sub 5) what is differ between error and abend 6) hw mvs knows who submitted the job and whoom it has to forward 7) what are the positinal parameters of data descripter

1 Answers   L&T,


When you specify multiple datasets in a JOBLIB or STEPLIB, what factor determines the order?

0 Answers  


What is the meaning of the following declaration : DCB=BLKSIZE=, What is the difference between above declaration & not specifying DCB at all for a output file?

1 Answers  


Which dd parameters are required?

0 Answers  


Categories