Search found 50 matches

by venky
Fri Apr 08, 2016 7:39 pm
Forum: JCL
Topic: Add Numeric Values Using JCL
Replies: 1
Views: 4413

Add Numeric Values Using JCL

Hi All, Can anyone please look into the below question. I have a 80 byte file with the below records. 164 NUMS:000001 123 NUMS:000001 122 NUMS:000001 223 NUMS:000001 444 NUMS:000001 Need output as below. 164 NUMS:000001 123 NUMS:000001 122 NUMS:000001 223 NUMS:000001 444 NUMS:000001 SUM :000005 When...
by venky
Thu Jul 02, 2015 12:22 am
Forum: JCL
Topic: Copy one PS file into another PS file by Multiple times
Replies: 5
Views: 7884

Thank you William, yes as you said we can give 10 times the same file for getting my output, instead of giving 10 times the same file is there any chance to rectify by using REPEAT Option only for getting my ouput.

REgards,
Venky.
by venky
Wed Jul 01, 2015 11:57 pm
Forum: JCL
Topic: Copy one PS file into another PS file by Multiple times
Replies: 5
Views: 7884

Thanks William, OUTFIL with REPEAT is working, but i have one more question. Please see below. Input file: 01 02 03 Now for the above input I am using OUTFIL REPEAT = 3, I am getting the ouput as below. Output: 01 01 01 02 02 02 03 03 03 but I want the output as below. Output: 01 02 03 01 02 03 01 0...
by venky
Wed Jul 01, 2015 6:11 pm
Forum: JCL
Topic: Copy one PS file into another PS file by Multiple times
Replies: 5
Views: 7884

Copy one PS file into another PS file by Multiple times

Hi,

I want to copy a PS File which is having 100 records and this PS file should copy multiple times into another PS File say like 10 times.

So the output will be having 1000 records. Please anybody look into this. Thanks.

Regards,
Venky.
by venky
Thu Oct 17, 2013 10:03 pm
Forum: COBOL
Topic: Return-code
Replies: 11
Views: 12176

Hi William, Exactly you are right! Actually I am writing a program like if a dataset is empty I am sending Maxcc=8 and If a dataset is having data in it then I am sending Maxcc=0 by using return-code. Please look into the below code. If file-status-code = 0 move 8 to return-code else move 0 to retur...
by venky
Thu Oct 17, 2013 11:06 am
Forum: COBOL
Topic: Return-code
Replies: 11
Views: 12176

Hi Guru, No I don't want in sysout, in sysout if we want to display we can use 'Display' in the program. When we run any program we will be seeing the message like maxcc=0 after completing the job right? Below that maxcc=0 message only I need to dispaly 'data is not matching'. can we do this? Thanks...
by venky
Wed Oct 16, 2013 10:43 pm
Forum: COBOL
Topic: Return-code
Replies: 11
Views: 12176

Thanks Dikdude, I have included the code like below. If file-status-code = 0 move 8 to return-code else move 0 to return-code end-if. here,when I am submitting the job I am getting Maxcc=8 it depends upon the input file. Now, my question is instead of 8 or 0, can we pass alphabetic data into any oth...
by venky
Wed Oct 16, 2013 8:00 pm
Forum: COBOL
Topic: Return-code
Replies: 11
Views: 12176

Return-code

Hi All, As we know that Return-code is to send condition code(maxcc) when we submit the job based on logic in our program. Is there is any parameter like Return-code to send Alphabetic data instead of numeric data. like i want to display message in alphabetic after submitting the job as we are getti...
by venky
Tue Oct 08, 2013 9:40 pm
Forum: DFSORT , ICETOOL & Utilities
Topic: Moving Data
Replies: 1
Views: 2848

Moving Data

Hi All, I have a file having the records metioned below with 80 bytes. Input file : October GIT S12345 SH 10/2/13 123456 B99 Now I want the ouput as below. October GIT S12345 SH 10/2/13 123456B99 Here in the output file B99 is concatenated with the above record '123456'. Please let me know if there ...
by venky
Mon Sep 09, 2013 6:14 pm
Forum: JCL
Topic: Outrec
Replies: 5
Views: 6238

Thank you Williams, NicC, I don't know. I thought Outrec is a part of JCL because In JCL only we are able to use it, without JCL we can't able to execuate this Outrec. now I came to know outrec is a sort statement. okay anyways for your suggesstion...next time i will post in correct way. Regards, Ve...
by venky
Sat Sep 07, 2013 10:09 pm
Forum: JCL
Topic: Outrec
Replies: 5
Views: 6238

Outrec

Hi All, I have input file based on condition I am getting two outputs. Please see below. step01 exec pgm=sort dd1 dd dsn=infile,disp=shr sortof01 dd dsn=outfile1----> i am creating this output sortof02 dd dsn=outfile2----> i am creating this output sysin dd * sort fields=copy outfil files=01,include...
by venky
Tue Aug 13, 2013 7:13 pm
Forum: JCL
Topic: Format the Data
Replies: 2
Views: 3436

Format the Data

Hi All, I have a PS file having record length 200 and in this PS file I have 4 records as below. john erwin edge wood New york United states of America can we reformat the above data as below by using a JCL, I need to get the above 4 records into 1 record I mean in single line. john erwin edge wood ...
by venky
Thu Jul 18, 2013 3:16 am
Forum: COBOL
Topic: Set a password for PDF
Replies: 2
Views: 3504

Set a password for PDF

Hi All,

I have a program, If I submit this program in a JCL, I will be getting a PDF file to my inbox.

Can we set a password for PDF file by using a Cobol program or by using a JCL?

Please help me if there is any procedure to SET A PASSWORD FOR THE PDF FILE. Thanks.

Regards,
Venky.
by venky
Thu Apr 04, 2013 12:52 am
Forum: JCL
Topic: Do we have Skiplast parameter in JCL...like we have Skiprec?
Replies: 6
Views: 6976

Hi Nic,

In Sort utility, we will use Skiprec option for ignoring the records.

like this is there any option to ignore the records from the bottom of the file.

Please help me if it is there.

Thank you,
Regards,
Venky
by venky
Wed Apr 03, 2013 9:43 pm
Forum: JCL
Topic: Do we have Skiplast parameter in JCL...like we have Skiprec?
Replies: 6
Views: 6976

Do we have Skiplast parameter in JCL...like we have Skiprec?

Hi All,

Do we have Skiplast parameter in JCL...like we have Skiprec?

Thanks,
Regards,
Venky.