Search found 10 matches

by HajiAmida
Fri Feb 17, 2023 7:27 pm
Forum: SyncSort, SyncTool, SyncGener.
Topic: calculate no.of days between two dates by using sort in jcl
Replies: 0
Views: 4004

calculate no.of days between two dates by using sort in jcl

Anyone know how to calculate no.of days between two dates by using sort in jcl? Is this possible?
by HajiAmida
Fri Feb 17, 2023 7:25 pm
Forum: Interview Questions.
Topic: COBOL declaration and value of variable.
Replies: 1
Views: 1195

COBOL declaration and value of variable.

Hello,

Suppose i am declaring

Code: Select all

05 temp-a.
     10 temp-b pic x(1)
      10 temp-c pic x(1)

If I give if temp-a = '1' , means it is equivalent to if temp-b = 1 right? Anyone please confirm.
by HajiAmida
Sat Feb 11, 2023 10:11 pm
Forum: Interview Questions.
Topic: What GDG will be used?
Replies: 1
Views: 845

What GDG will be used?

A job has 5 steps and 1st step creates a new generation and is referred as +1 3rd step creates another generation and is referred as +2 5th step creates another generation and is referred as +3 If the job abends in 4th step and if it is decided that the job can be restarted from 4th step only then w...
by HajiAmida
Wed Dec 30, 2015 12:24 pm
Forum: Interview Questions.
Topic: A complex question on space abend.
Replies: 4
Views: 1161

Re: A complex question on space abend.

Thanks Robert. I did some research on IGD message as hinted by you and got this link https://www-01.ibm.com/support/knowledgecenter/SSLTBW_2.1.0/com.ibm.zos.v2r1.ieam800/iea3m8_IGD_messages.htm From there I find these related to SPACE: IGD17004I NOT ENOUGH SPACE FOR PDS DIRECTORY ON VOLUME vol FOR D...
by HajiAmida
Wed Dec 30, 2015 11:15 am
Forum: Interview Questions.
Topic: Take input file as FB and produce a different length records.
Replies: 7
Views: 901

Re: Take input file as FB and produce a different length records.

Based on the input files' first two characters and then the characters at position 12-13. We are aiming to use COBOL. These two are from the interview. Other questions I made up, not because I wanted to cheat but I wanted to learn more. I saw your replies on other posts and was sure that you can gi...
by HajiAmida
Mon Dec 28, 2015 1:59 pm
Forum: Interview Questions.
Topic: A complex question on space abend.
Replies: 4
Views: 1161

Re: A complex question on space abend.

If the allocation is done on a volume that does not have 40 free cylinders available in 5 extents, you'd get a space ABEND. The number of records is irrelevant to this issue. If the data set is under SMS control, you won't get a space ABEND at all. SMS will give you messages about how many volumes ...
by HajiAmida
Mon Dec 28, 2015 1:56 pm
Forum: Interview Questions.
Topic: Take input file as FB and produce a different length records.
Replies: 7
Views: 901

Re: Take input file as FB and produce a different length records.

- How do you know how long each output record should be? Based on the input files' first two characters and then the characters at position 12-13. - Where do the extra bytes come from for records that are longer than the 80 byte input length? That is we are not sure at this moment. But for now we c...
by HajiAmida
Tue Dec 22, 2015 11:03 am
Forum: Interview Questions.
Topic: A complex question on space abend.
Replies: 4
Views: 1161

A complex question on space abend.

Hi, This question is related to SB37 I am sure but as it was asked I could not answer it. Can someone help me. The question is, if a file, file-1, has just 10 records while the DD statement for it has the space allocation as SPACE=(CYL,(40,10)). But we still get a space abend. Tell us why would this...
by HajiAmida
Tue Dec 22, 2015 10:57 am
Forum: Interview Questions.
Topic: Take input file as FB and produce a different length records.
Replies: 7
Views: 901

Take input file as FB and produce a different length records.

Hi,

I need help in this interview question:

If the input file have a fixed record length as 80. But output file should have records with different lengths. Output file should have first record of say length 100, second record of 75, third is of 80. How can we do it, write a pseudo code.

Go to advanced search