Author: mohamedmubee
Subject: Reply to: how to DYNAMICALLY write sort cond to o/p file using cobol
Posted: Tue Aug 30, 2016 3:48 pm (GMT 5.5)
these are the things i missed to include in the requirement...
first, the input file will get the records based on some other files that will be written to the file.
second, the record may be 5 records, or 10 or 13 it will be varying....
third, the ouput sort card then will be taken as a control card and to be used in further steps to begin processing of other files based on the sort card selection of data.
so
@ Akatsukami, the count will vary so its hard to code how many table entries needed.
@ pramitdas,
yes it is a cobol program i am trying to write these output. i think i can't put these in ps file as i didn't know how many records will come from the input file ??
ABC.XYZ.XYZ or ABC
__________________________________________________
Your job card
---------------------------------------------------
//STEPNAME --------------
//INCLUDE COND=(1,4,EQ,C'XXX1,YYY2,ZZZ1',
OR,1,4,EQ,C'XXX2,YYY2,ZZZ2',
OR,1,4,EQ,C'XXX3,YYY3'),FORMAT=SS
SORT FIELDS=(1,4,CH,A)
SUM FIELDS=NONE
/*
@ sergeyken
i need to use the output file record as a control card and need to process the further steps in the JCL. and I am using MicroFocus COBOL not sure whether REXX can be used. also I didn't know REXX I will check this one on how your code works for this requirement.....
let me know if any quesitons....![icon_sad.gif]()
_________________
~SPIRIT~
Subject: Reply to: how to DYNAMICALLY write sort cond to o/p file using cobol
Posted: Tue Aug 30, 2016 3:48 pm (GMT 5.5)
these are the things i missed to include in the requirement...
first, the input file will get the records based on some other files that will be written to the file.
second, the record may be 5 records, or 10 or 13 it will be varying....
third, the ouput sort card then will be taken as a control card and to be used in further steps to begin processing of other files based on the sort card selection of data.
so
@ Akatsukami, the count will vary so its hard to code how many table entries needed.
@ pramitdas,
yes it is a cobol program i am trying to write these output. i think i can't put these in ps file as i didn't know how many records will come from the input file ??
ABC.XYZ.XYZ or ABC
__________________________________________________
Your job card
---------------------------------------------------
//STEPNAME --------------
//INCLUDE COND=(1,4,EQ,C'XXX1,YYY2,ZZZ1',
OR,1,4,EQ,C'XXX2,YYY2,ZZZ2',
OR,1,4,EQ,C'XXX3,YYY3'),FORMAT=SS
SORT FIELDS=(1,4,CH,A)
SUM FIELDS=NONE
/*
@ sergeyken
i need to use the output file record as a control card and need to process the further steps in the JCL. and I am using MicroFocus COBOL not sure whether REXX can be used. also I didn't know REXX I will check this one on how your code works for this requirement.....
let me know if any quesitons....

_________________
~SPIRIT~