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

In jcl i have 255 steps. In 255 step i declared proc. In proc i have 20 steps this job is executable or not? why?

4 Answers  


which utility is used to update pds?

1 Answers   IBM,


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,


Brief description of inline procedure of jcl.

0 Answers  


Can you execute a PROC from another PROC?

8 Answers   Keane India Ltd,






which parameter is use to declare the name of dataset in dd statement?

0 Answers   IBM,


How is the record format of an output dataset specified?

0 Answers  


Explain the purpose of dd dummy statement?

0 Answers  


Can I send output of job to my remote device careerride123?

0 Answers  


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

2 Answers   Syntel,


There are two input sorting files and there is a need to create one sort out file which contains data of both input files. What is the sort card for this. Write a sample JCL for this using a control card?

3 Answers  


State the uses of syspring, sysin, sort fields, sum fields and dummy.

0 Answers  


Categories