Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups 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 Changing of LRECL of a file abdulrafi DFSORT/ICETOOL 2 Fri Mar 24, 2017 3:25 pm
No new posts splitting a file abdulrafi DFSORT/ICETOOL 4 Fri Mar 24, 2017 11:51 am
No new posts Receive a file using PCOMM macro Harald.v.K IBM Tools 0 Thu Mar 23, 2017 6:50 pm
No new posts Export flat file data into excel sheet murali.andaluri DFSORT/ICETOOL 2 Mon Mar 20, 2017 5:39 pm
No new posts Formatting VB File Learncoholic DFSORT/ICETOOL 3 Mon Mar 20, 2017 12:29 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us