Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Profile Log in to check your private messages Log in
 
How to generate a file based on a value in the control card

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> DFSORT/ICETOOL
View previous topic :: :: View next topic  
Author Message
Bill Ross

New User


Joined: 25 Jan 2007
Posts: 39
Location: Charleston SC

PostPosted: Wed Mar 28, 2007 11:11 pm    Post subject: How to generate a file based on a value in the control card
Reply with quote

I know there is a resolution to this task I am not familiar with how to ?stack? or concatenate ICETOOL commands.

The scenario is this, based on the value of column three of a control card (which can contain the value of a ?d? (daily) or ?w? (weekly)).

I need to generate two files (one of which I realize will be null, based on the value of column three).

Also I need to set a return code to allow/disallow subsequent jobsteps from executing or not executing. I would assume that for the daily (one return code) and for the weekly (another return code).
Back to top
View user's profile Send private message

Frank Yaeger

DFSORT Moderator


Joined: 15 Feb 2005
Posts: 7130
Location: San Jose, CA

PostPosted: Wed Mar 28, 2007 11:48 pm    Post subject:
Reply with quote

Bill,

I can't figure out what you need from what you've said. Could you please elaborate. Examples of the records involved would help. It's not clear to me what you mean by "generate two files". What do they look like?

Quote:
I need to set a return code to allow/disallow subsequent jobsteps from executing or not executing.


Based on what? Set to what for what reason?
Back to top
View user's profile Send private message
Bill Ross

New User


Joined: 25 Jan 2007
Posts: 39
Location: Charleston SC

PostPosted: Fri Mar 30, 2007 2:37 am    Post subject: The task has been reassigned
Reply with quote

The task has been assigned to another person. But I will try to explain the task as I understand it.

A file would be input to the Sort (ICETOOL) step. A control card would be input also.

On the control card in the third position would be either a "D" or "W", based on this value the Sort (ICETOOL) step would have to set a return code(based on the value in column three) to determine file processing in subsequent steps.

I am sure I will have other questions for you sir.
Back to top
View user's profile Send private message
Frank Yaeger

DFSORT Moderator


Joined: 15 Feb 2005
Posts: 7130
Location: San Jose, CA

PostPosted: Fri Mar 30, 2007 2:51 am    Post subject:
Reply with quote

Ok, I'll pass on this one since it's still unclear to me what's needed and you don't need it anymore.
Back to top
View user's profile Send private message
William Thompson

Global Moderator


Joined: 18 Nov 2006
Posts: 3158
Location: Tucson AZ

PostPosted: Fri Mar 30, 2007 3:18 am    Post subject:
Reply with quote

Bill,

Look at Frank's sort tricks, to set a return code if the file is empty or not.
You might be able to infil omit the D record and the count (?) could return a cc of 12 if the input record contained the D and 0 if it contained the W.
I think that is what you are asking for, but you will have to play with it to get it right.

Bill
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> DFSORT/ICETOOL All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts ISSUE IN copying Sequential file reco... thesumitk JCL & VSAM 2 Wed Dec 13, 2017 3:07 pm
No new posts File Tailoring -- Temporary dataset i... samzee71 CLIST & REXX 3 Fri Dec 01, 2017 3:12 am
No new posts Rexx - File tailoring samzee71 CLIST & REXX 10 Thu Nov 30, 2017 10:47 pm
No new posts Control-M restart instruction sonaliingle CA Products 2 Tue Nov 28, 2017 5:05 pm
No new posts Moving a PS file as body of a mail! Vignesh Sid JCL & VSAM 4 Tue Nov 21, 2017 9:23 pm

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us